1

After upgrading from Ubuntu 20.04 to Ubuntu 24.04, installing applications no longer works. When installing via snap from e.g. Chromium, I get the following error:

root@pc123456:/home/name# snap install chromium-browser
snap: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

I have now spent the whole morning searching through various forum entries, some of them very old, that point to this error, but unfortunately I cannot find a working solution.

Among other things, I have already tried:

  • Reinstalling libx11-6 and
  • Reinstalling snapd

All were to no avail. Now I don't know what to do next.

Unable to connect Snap Store:

Unable to connect Snap Store

karel
  • 122,292
  • 133
  • 301
  • 332
taenzer1978
  • 11
  • 1
  • 3

3 Answers3

4

I don't know if you have icaclient installed (Citrix) but it turned out that was the culprit on my machine. I had recently updated it and it prompts about an "app protection" component.

On other sites people are talking about LD_PRELOAD etc causing this sort of thing, but env|grep LD only showed OLDPWD so I at first thought that wasn't the issue. But using ldd on /usr/bin/snap showed /usr/local/lib/AppProtection/libAppProtection.so and /usr/local/lib looked sus and searches about it mention Citrix. It turns out that "app protection" injects something into preload via some sort of systemd mechanism.

To fix it I ran apt remove --purge icaclient and then reinstalled icaclient (deb from Citrix website) and made sure that app protection was disabled during reinstall. Afterwards I also ran sudo service snapd restart to get snap running, but reboot would work.

0

Had the same happen when icaclient was installed (Citrix).

Anyway, removing the icaclient and its dependencies, and restarting snapd resolved the problem.

They even have it documented:

https://docs.citrix.com/en-us/citrix-workspace-app/app-protection.html#:~:text=App%20Protection%20is%20not%20supported%20when%20you%20launch,use%20snap%20applications%20when%20App%20Protection%20is%20installed.

In Citrix Workspace app for Linux, you're unable to use snap applications when App Protection is installed.

0

I can confirm - The icaclient was the culprit. My client was from the Citrix web site.

sudo dpkg --purge icaclient

Did the trick, no reboot required.

Thanks @ib-mmsys for pointing me to icaclient as the cause.