Same problem in Ubuntu 24.04.2 LTS - running ubuntu-bug (or xdaliclock or evince) via ssh from Ubuntu 20.04.6 LTS causes windows to open on the display of the remote machine (24.04.2 LTS), not on the display of the local machine (20.04.6 LTS). To reproduce:
On the local machine 20.04.6 LTS: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal $ echo $DISPLAY :0 $ ps laxww | grep 'X.* :[0] ' 0 1000 6352 6324 20 0 4144 1900 do_wai S+ tty1 0:00 xinit /etc/X11/xinit/xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.5UYJOujUP2 4 1000 6353 6352 20 0 1284804 96728 ep_pol Sl tty1 29:54 /usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.5UYJOujUP2 $ ssh tablet Welcome to Ubuntu 24.04.2 LTS (GNU/Linux 6.8.0-60-generic x86_64) [...] I am now logged in to the remote machine 24.04.2 LTS via ssh. This machine runs Xwayland: $ echo $DISPLAY localhost:10.0 $ ps laxww | grep 'X.* :[0] ' 0 1000 4168 3418 20 0 398576 87356 ep_pol Sl ? 0:01 /usr/bin/Xwayland :0 -rootless -noreset -accessx -core -auth /run/user/1000/.mutter-Xwaylandauth.YP2362 -listenfd 4 -listenfd 5 -displayfd 6 -initfd 7 -byteswappedclients On the remote machine I try all of these commands and they work fine (displaying correctly on the local Xorg display, not on the remote Xwayland display): - xcalc, xclock, xdpyinfo, xeyes, xterm, xload, xlogo, xmessage, xev, xli - xeglgears, xlsatoms, xlsclients, xmag, xman, xmore, xournal - xprop, xrandr, xrdb, xrefresh, xsetroot, xvinfo, xwd, xwininfo - gvim, glxgears ...all open windows correctly on the LOCAL machine Xorg display. On the remote machine I try these commands below and they do not use the LOCAL machine Xorg display; they incorrectly open on the REMOTE Xwayland display: $ ubuntu-bug xxx dpkg-query: no packages found matching xxx ...opens window INcorrectly on the REMOTE machine Xwayland display... $ xdaliclock xdaliclock: Gdk: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed xdaliclock: Gdk: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed ...opens window INcorrectly on the REMOTE machine Xwayland display... $ evince file.pdf ...opens window INcorrectly on the REMOTE machine Xwayland display... -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1989545 Title: ubuntu-bug fails when run via remote SSH login Status in apport package in Ubuntu: New Bug description: I'm running Ubuntu 20.04 on my desktop. I SSH into my laptop running 22.04: desktop$ ssh laptop laptop$ sudo -sE laptop# If I now run most any X11 client applications (e.g. xload, xterm) using this laptop SSH command line, they correctly open windows on my desktop X11 display, not on my laptop, using the DISPLAY variable set to localhost:10.0. But ubuntu-bug does not do this when I run it on the laptop: laptop# ubuntu-bug /etc/network/if-up.d/resolved At this point, the laptop display incorrectly has the apport X11 window open. The apport window does not open on my desktop, like any other X11 application would. It appears to ignore my DISPLAY variable. If I go over to the laptop and try to continue with the bug report, everything falls apart when it tries to start up a web browser. I get all these error messages on my SSH terminal screen: update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/local/share/fonts /usr/local/share/fonts none bind,ro 0 0): not a directory update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/libreoffice/help /usr/share/libreoffice/help none bind,ro 0 0): cannot create directory "/usr/share/libreoffice/help": permission denied update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/xubuntu-docs /usr/share/xubuntu-docs none bind,ro 0 0): cannot open directory "/var/lib": permission denied /home/username/Music was removed, reassigning MUSIC to homedir X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. Error: cannot open display: localhost:10.0 X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. If ubuntu-bug cannot work over SSH with DISPLAY=localhost:10.0, it should detect this and not even try. ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: apport 2.20.11-0ubuntu82.1 ProcVersionSignature: Ubuntu 5.15.0-48.54-generic 5.15.53 Uname: Linux 5.15.0-48-generic x86_64 ApportLog: ApportVersion: 2.20.11-0ubuntu82.1 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Wed Sep 14 02:33:18 2022 InstallationDate: Installed on 2020-09-08 (735 days ago) InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) PackageArchitecture: all SourcePackage: apport UpgradeStatus: Upgraded to jammy on 2022-04-04 (162 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1989545/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp