Public bug reported: I'm getting the following when using snap (any command, including just snap): snap: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
I get this only after trying to install a package (hello-world) with snap; immediately after purging and installing snapd, I do not have this issue. However, after snap install hello-world, snap seems broken in this way. I would expect that "sudo apt-get purge snapd; sudo apt-get install snapd; snap install hello-world" should not break. Some details collected running some suggested commands from the internet: 1. sudo apt-get purge snapd 2. sudo apt-get install snapd 3. snap version output: snap 2.66.1+24.04 snapd 2.66.1+24.04 series 16 ubuntu 24.04 kernel 6.8.0-53-generic 4. snap list output: No snaps are installed yet. Try 'snap install hello-world'. 5. snap changes output: ID Status Spawn Ready Summary 1 Done today at 10:35 EST today at 10:35 EST Initialize system state 6. dpkg -l | grep libx11 output: ii libx11-6:amd64 2:1.8.7-1build1 amd64 X11 client-side library ii libx11-data 2:1.8.7-1build1 all X11 client-side library ii libx11-dev:amd64 2:1.8.7-1build1 amd64 X11 client-side library (development headers) ii libx11-protocol-perl 0.56-9 all Perl module for the X Window System Protocol, version 11 ii libx11-xcb1:amd64 2:1.8.7-1build1 amd64 Xlib/XCB interface library 7. ls -l /usr/lib/x86_64-linux-gnu/libX11.so.6* output: lrwxrwxrwx 1 root root 15 Apr 8 2024 /usr/lib/x86_64-linux-gnu/libX11.so.6 -> libX11.so.6.4.0 -rw-r--r-- 1 root root 1298088 Apr 8 2024 /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0 8. ldconfig -p | grep libX11.so.6 output: libX11.so.6 (libc6,x86-64) => /lib/x86_64-linux-gnu/libX11.so.6 9. env | grep LD_LIBRARY_PATH no output 10. dpkg -l | grep snap output: rc firefox 1:1snap1-0ubuntu5 amd64 Transitional package - firefox -> firefox snap ii gir1.2-snapd-2:amd64 1.64-0ubuntu5 amd64 Typelib file for libsnapd-glib1 ii libsnapd-glib-2-1:amd64 1.64-0ubuntu5 amd64 GLib snapd library ii libsnappy1v5:amd64 1.1.10-1build1 amd64 fast compression/decompression library ii snapd 2.66.1+24.04 amd64 Daemon and tooling that enable snap packages rc thunderbird 2:1snap1-0ubuntu3 11. snap install hello-world output: hangs at "Automatically connect eligible plugs and slots of snap "snapd"" "2025-02-14T10:44:01-05:00 INFO Waiting for automatic snapd restart..." 2025-02-14T10:44:01-05:00 INFO Waiting for automatic snapd restart... Waiting for server to restart error: cannot communicate with server: Get "http://localhost/v2/changes/2": dial unix /run/snapd.socket: connect: connection refused 12. snap # snap is broken on any command output: snap: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: snapd 2.66.1+24.04 ProcVersionSignature: Ubuntu 6.8.0-53.55-generic 6.8.12 Uname: Linux 6.8.0-53-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.28.1-0ubuntu3.3 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Fri Feb 14 10:51:22 2025 InstallationDate: Installed on 2019-09-11 (1983 days ago) InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210) SourcePackage: snapd UpgradeStatus: Upgraded to noble on 2024-10-07 (131 days ago) ** Affects: snapd (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2098503 Title: snap broken even after purging and reinstalling To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/2098503/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs