Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Nominal) Some existing Snap applications wouldn't launch after upgrade #1761

Open
ghost opened this issue Jul 1, 2021 · 1 comment
Open

Comments

@ghost
Copy link

ghost commented Jul 1, 2021

EDIT: I'm ditching this @AGreeff account and moving everything over to my main @ZaLiTHkA account instead. please use that for any mentions going forward.

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="21.04"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 21.04"
VERSION_ID="21.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=hirsute
UBUNTU_CODENAME=hirsute
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/multiverse i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute-updates,n=hirsute,l=Ubuntu,c=multiverse,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/multiverse amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute-updates,n=hirsute,l=Ubuntu,c=multiverse,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/universe i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute-updates,n=hirsute,l=Ubuntu,c=universe,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/universe amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute-updates,n=hirsute,l=Ubuntu,c=universe,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/restricted i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute-updates,n=hirsute,l=Ubuntu,c=restricted,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/restricted amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute-updates,n=hirsute,l=Ubuntu,c=restricted,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/main i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute-updates,n=hirsute,l=Ubuntu,c=main,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-updates/main amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute-updates,n=hirsute,l=Ubuntu,c=main,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-security/multiverse i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute-security,n=hirsute,l=Ubuntu,c=multiverse,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-security/multiverse amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute-security,n=hirsute,l=Ubuntu,c=multiverse,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-security/universe i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute-security,n=hirsute,l=Ubuntu,c=universe,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-security/universe amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute-security,n=hirsute,l=Ubuntu,c=universe,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-security/restricted i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute-security,n=hirsute,l=Ubuntu,c=restricted,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-security/restricted amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute-security,n=hirsute,l=Ubuntu,c=restricted,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-security/main i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute-security,n=hirsute,l=Ubuntu,c=main,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute-security/main amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute-security,n=hirsute,l=Ubuntu,c=main,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute/multiverse i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute,n=hirsute,l=Ubuntu,c=multiverse,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute/multiverse amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute,n=hirsute,l=Ubuntu,c=multiverse,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute/universe i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute,n=hirsute,l=Ubuntu,c=universe,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute,n=hirsute,l=Ubuntu,c=universe,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute/restricted i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute,n=hirsute,l=Ubuntu,c=restricted,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute/restricted amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute,n=hirsute,l=Ubuntu,c=restricted,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute/main i386 Packages
     release v=21.04,o=Ubuntu,a=hirsute,n=hirsute,l=Ubuntu,c=main,b=i386
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu hirsute/main amd64 Packages
     release v=21.04,o=Ubuntu,a=hirsute,n=hirsute,l=Ubuntu,c=main,b=amd64
     origin us.archive.ubuntu.com
1001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main i386 Packages
     release v=21.04,o=LP-PPA-system76-pop,a=hirsute,n=hirsute,l=Pop!_OS PPA,c=main,b=i386
     origin ppa.launchpad.net
1001 http://ppa.launchpad.net/system76/pop/ubuntu hirsute/main amd64 Packages
     release v=21.04,o=LP-PPA-system76-pop,a=hirsute,n=hirsute,l=Pop!_OS PPA,c=main,b=amd64
     origin ppa.launchpad.net
 500 http://apt.pop-os.org/proprietary hirsute/main all Packages
     release v=21.04,o=system76,a=hirsute,n=hirsute,l=System76,c=main,b=all
     origin apt.pop-os.org
 500 http://apt.pop-os.org/proprietary hirsute/main amd64 Packages
     release v=21.04,o=system76,a=hirsute,n=hirsute,l=System76,c=main,b=amd64
     origin apt.pop-os.org
Pinned packages:
     libedata-book-1.2-26 -> 3.40.0-1ubuntu1.1 with priority 1
     libebook-1.2-20 -> 3.40.0-1ubuntu1.1 with priority 1
     libecal-2.0-1 -> 3.40.0-1ubuntu1.1 with priority 1
     libedataserver-1.2-26 -> 3.40.0-1ubuntu1.1 with priority 1
     evolution-data-server -> 3.40.0-1ubuntu1.1 with priority 1
     evolution-data-server-common -> 3.40.0-1ubuntu1.1 with priority 1
     libcamel-1.2-62 -> 3.40.0-1ubuntu1.1 with priority 1
     libebook-contacts-1.2-3 -> 3.40.0-1ubuntu1.1 with priority 1
     libedataserverui-1.2-3 -> 3.40.0-1ubuntu1.1 with priority 1
     libedata-cal-2.0-1 -> 3.40.0-1ubuntu1.1 with priority 1
     libebackend-1.2-10 -> 3.40.0-1ubuntu1.1 with priority 1

Issue/Bug Description:

I did an in-place upgrade through the Settings app, from an up-to-date 20.10 to 21.04. almost everything came across exactly as expected (thanks!), and some small things needed to be re-configured (Gnome extensions. naturally..).

during the setup, I did notice mention of some configuration being done with regards to "Snap" (I forget the exact message now). however I then discovered that not all of my Snap apps were opening. when MS Teams refused to open from the launcher, I dropped into terminal and discovered the following:

> teams
ERROR: ld.so: object '/snap/teams/5/gnome-platform/libpreload-chromium-content-api.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/snap/teams/5/gnome-platform/libpreload-chromium-content-api.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/snap/teams/5/gnome-platform/libpreload-chromium-content-api.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/snap/teams/5/gnome-platform/libpreload-chromium-content-api.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/snap/teams/5/gnome-platform/libpreload-chromium-content-api.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/snap/teams/5/gnome-platform/libpreload-chromium-content-api.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/snap/teams/5/snap/command-chain/desktop-launch: line 50: /home/agreeff/.config/user-dirs.dirs: Permission denied
ERROR: ld.so: object '/snap/teams/5/gnome-platform/libpreload-chromium-content-api.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/snap/teams/5/gnome-platform/libpreload-chromium-content-api.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: not connected to the gnome-3-28-1804 content interface.

thereafter, I started checking all my other installed Snaps and found many of them were broken.

important note: all affected apps did launch correctly after removing and re-installing them. 👍🏼

Steps to reproduce (if you know):

not sure, I simply upgraded from 20.10 to 21.04 with the provided tools.

Expected behavior:

and I'm most definitely not expecting miracles here, this is a major in-place upgrade.... 🤔 I'm just noting that some Snap migrations didn't "Just Work ™️ ".

I'm pretty new to Snaps myself, but one point I did find interesting is that none of the --classic Snaps seem to have been affected (i.e.: they worked). so perhaps these Snaps had post-install actions? I'm assuming that these would not have been re-run after the OS upgrade, hence the issues.

Other Notes:

installed Snap list
> snap list
Name                     Version                     Rev    Tracking       Publisher             Notes
android-studio           4.2.1.0                     105    latest/stable  snapcrafters          classic
beekeeper-studio         1.12.0                      101    latest/stable  matthew-rathbone      -
bitwarden                1.27.0                      51     latest/stable  bitwarden✓            -
blender                  2.93.1                      206    latest/stable  blenderfoundation✓    classic
bw                       1.17.0                      27     latest/stable  bitwarden✓            -
code-insiders            57930758                    751    latest/stable  vscode✓               classic
core                     16-2.51.1                   11316  latest/stable  canonical✓            core
core18                   20210611                    2074   latest/stable  canonical✓            base
core20                   20210429                    1026   latest/stable  canonical✓            base
docker                   19.03.13                    796    latest/stable  canonical✓            -
firecamp                 2.0.7                       168    latest/stable  nishchit14            -
gnome-3-26-1604          3.26.0.20210629             104    latest/stable  canonical✓            -
gnome-3-28-1804          3.28.0-19-g98f9e67.98f9e67  145    latest/stable  canonical✓            -
gnome-3-34-1804          0+git.3556cb3               72     latest/stable  canonical✓            -
gnome-3-38-2004          0+git.3d25b9b               39     latest/stable  canonical✓            -
gtk-common-themes        0.1-52-gb92ac40             1515   latest/stable  canonical✓            -
kde-frameworks-5-core18  5.61.0                      32     latest/stable  kde✓                  -
krita                    4.4.5                       64     latest/stable  krita✓                -
netbeans                 12.4                        48     latest/stable  apache-netbeans✓      classic
obs-studio               27.0.0                      1251   latest/stable  snapcrafters          -
openfortivpn             1.3.0                       3      latest/stable  dimitri-papadopoulos  -
remmina                  v1.4.19                     4965   latest/stable  remmina✓              -
slack                    4.17.2                      42     latest/stable  slack✓                classic
snap-store               3.38.0-64-g23c4c77          547    latest/stable  canonical✓            -
snapcraft                4.8.3                       6596   latest/stable  canonical✓            classic
storage-explorer         1.20.0                      24     latest/stable  msft-storage-tools✓   -
sweethome3d-homedesign   6.5                         13     latest/stable  jibel                 -
teams                    1.4.00.13653                5      latest/stable  msteams✓              -
Snaps that needed to be re-installed:

beekeeper-studio error:

/snap/beekeeper-studio/101/beekeeper-studio-bin: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory

bitwarden error:

/snap/bitwarden/51/bitwarden: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory

firecamp error:

/snap/firecamp/168/firecamp.bin: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory

krita error:

ERROR: not connected to the kde-frameworks-5-plug content interface.

netbeans launches correctly, but my previous config folder for 12.4 only had a cache folder, and launching Netbeans prompted to import my previous 12.3 config again (which I did still have).

obs-studio error:

ERROR: not connected to the gtk-3-themes content interface.

remmina error:

sed: can't read /home/agreeff/.config/user-dirs.dirs: Permission denied
/snap/remmina/4965/snap/command-chain/desktop-launch: line 242: /home/agreeff/.config/user-dirs.dirs: Permission denied
cp: cannot open '/home/agreeff/.config/user-dirs.locale' for reading: Permission denied
/snap/remmina/4965/snap/command-chain/desktop-launch: line 247: /home/agreeff/.config/user-dirs.locale: Permission denied
cp: cannot stat '/snap/remmina/4965/gnome-platform/usr/share/mime': No such file or directory
Directory '/home/agreeff/snap/remmina/4965/.local/share/mime/packages' does not exist!
/snap/remmina/4965/snap/command-chain/desktop-launch: line 20: /snap/remmina/4965/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: No such file or directory
ERROR: update-mime-database /home/agreeff/snap/remmina/4965/.local/share/mime exited abnormally with status 1
ERROR: /snap/remmina/4965/gnome-platform/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 exited abnormally with status 127
/snap/remmina/4965/usr/bin/remmina: error while loading shared libraries: libharfbuzz.so.0: cannot open shared object file: No such file or directory

snap-store error:

/snap/snap-store/547/snap/command-chain/desktop-launch: line 50: /home/agreeff/.config/user-dirs.dirs: Permission denied
ERROR: not connected to the gnome-3-34-1804 content interface.

storage-explorer error:

ERROR: not connected to the gnome-3-38-2004 content interface.

sweethome3d-homedesign error:

Picked up _JAVA_OPTIONS: -Duser.home=/home/agreeff/snap/sweethome3d-homedesign/13
Jul 01, 2021 1:03:29 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
        at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:132)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.Toolkit$2.run(Toolkit.java:860)
        at java.awt.Toolkit$2.run(Toolkit.java:855)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
        at com.eteks.sweethome3d.swing.SwingTools.showSplashScreenWindow(Unknown Source)
        at com.eteks.sweethome3d.SweetHome3D.init(Unknown Source)
        at com.eteks.sweethome3d.SweetHome3D.main(Unknown Source)
@ghost
Copy link
Author

ghost commented Jul 1, 2021

please note: I'm not sure where in the system this issue might belong, so feel free to move it to another repository if need be. 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants