gimp icon indicating copy to clipboard operation
gimp copied to clipboard

i can't run Gimp in ubuntu 20.04. libgdk_pixbuf-2.0.so.0 cannot open shared object file

Open artur14785 opened this issue 3 years ago • 7 comments

The last time I tried to use GIMP couldn't run it from the application menu icon. When I use the terminal it returns the following message :

user@user-Inspiron-3585:~$ gimp /snap/gimp/367/usr/bin/gimp: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory

There is a similar report here: https://github.com/snapcrafters/gimp/issues/102 but it has already closed and it is not detailed how the problem was solved Operative system: Ubuntu 20.04

artur14785 avatar May 04 '21 02:05 artur14785

I also had this problem today, it looks like the auto refresh failed:

$ snap changes
ID   Status  Spawn                   Ready                   Summary
162  Error   yesterday at 14:50 BST  yesterday at 15:01 BST  Auto-refresh snap "gimp"

I reinstalled the snap and now it works fine

snap remove gimp
snap install gimp

wpf500 avatar May 04 '21 10:05 wpf500

I also had this problem today, it looks like the auto refresh failed:

$ snap changes
ID   Status  Spawn                   Ready                   Summary
162  Error   yesterday at 14:50 BST  yesterday at 15:01 BST  Auto-refresh snap "gimp"

I reinstalled the snap and now it works fine

snap remove gimp
snap install gimp

Thanks. finally i had to remove and reinstall again. Do you know if this problem is a gimp bug or what causes it?

artur14785 avatar May 04 '21 13:05 artur14785

@wpf500 could you run snap change 162 and paste the output please? That might show where the failure to refresh was...

lucyllewy avatar May 04 '21 13:05 lucyllewy

Looks like the logs are gone unfortunately:

$ snap change 162
error: cannot find change with id "162"

Is there a backup somewhere?

wpf500 avatar May 05 '21 08:05 wpf500

Ah I found this in journalctl:

May 03 14:50:01 wfranklin-laptop systemd[1]: Starting Snap Daemon...
May 03 14:50:01 wfranklin-laptop snapd[1134]: AppArmor status: apparmor is enabled and all features are available
May 03 14:50:02 wfranklin-laptop snapd[1134]: AppArmor status: apparmor is enabled and all features are available
May 03 14:50:02 wfranklin-laptop snapd[1134]: daemon.go:347: started snapd/2.49.2 (series 16; classic) ubuntu/20.04 (amd64) linux/5.8.0-50-generic.
May 03 14:50:02 wfranklin-laptop snapd[1134]: daemon.go:440: adjusting startup timeout by 2m10s (pessimistic estimate of 30s plus 5s per snap)
May 03 14:50:03 wfranklin-laptop systemd[1]: Started Snap Daemon.
May 03 14:50:08 wfranklin-laptop snapd[1134]: storehelpers.go:551: cannot refresh: snap has no updates available: "boxy-svg", "code", "core", "core18", "gnome-3-28-1804", "gno>
May 03 15:00:38 wfranklin-laptop snapd[1134]: taskrunner.go:271: [change 162 "Download snap \"gnome-3-38-2004\" (39) from channel \"stable\"" task] failed: download too slow: >
May 03 15:00:39 wfranklin-laptop snapd[1134]: store_download.go:169: Cannot download or apply deltas for gimp: download too slow: 0.00 bytes/sec
May 03 15:01:35 wfranklin-laptop snapd[1134]: backend.go:575: remove late for snap gimp (347) type app
May 03 15:01:36 wfranklin-laptop snapd[1134]: storehelpers.go:551: cannot refresh snap "gimp": snap has no updates available
May 03 18:40:18 wfranklin-laptop snapd[1134]: storehelpers.go:551: cannot refresh: snap has no updates available: "boxy-svg", "code", "core", "core18", "core20", "gimp", "gnom>
May 03 18:40:18 wfranklin-laptop snapd[1134]: autorefresh.go:479: auto-refresh: all snaps are up-to-date
M

wpf500 avatar May 05 '21 08:05 wpf500

oof. download too slow sounds like a snapd bug.

lucyllewy avatar May 05 '21 12:05 lucyllewy

I've made a Snapcraft forum post to discuss with the snapd developers what the issue might be and how to prevent it in the future:

https://forum.snapcraft.io/t/snap-left-in-unusable-state-after-failure-to-refresh/24253

lucyllewy avatar May 05 '21 13:05 lucyllewy