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

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

Open
artur14785 opened this issue May 4, 2021 · 25 comments

Comments

@artur14785
Copy link

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: #102 but it has already closed and it is not detailed how the problem was solved
Operative system: Ubuntu 20.04

@wpf500
Copy link

wpf500 commented May 4, 2021

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

@artur14785
Copy link
Author

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?

@lucyllewy
Copy link
Member

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

@wpf500
Copy link

wpf500 commented May 5, 2021

Looks like the logs are gone unfortunately:

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

Is there a backup somewhere?

@wpf500
Copy link

wpf500 commented May 5, 2021

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

@lucyllewy
Copy link
Member

oof. download too slow sounds like a snapd bug.

@lucyllewy
Copy link
Member

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

@mindaslab
Copy link

I have this same bug I guess: /snap/gimp/436/usr/bin/gimp: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory

Nothing seems to fix it.

@viniciuspdionizio
Copy link

I have this same bug I guess: /snap/gimp/436/usr/bin/gimp: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory

Nothing seems to fix it.

same here, i'm using ubuntu 24.04

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble
$ snap version
snap    2.66.1+24.04
snapd   2.66.1+24.04
series  16
ubuntu  24.04
kernel  6.8.0-51-generic

@Axelkt17
Copy link

I have the same issue with ubuntu 24.04. Switched to sudo apt install gimp with much less download size and works without problems. Sorry, snap, why does the installation via application center of one of the most used applications fail in ubuntu?

@John-Peters
Copy link

Same problem with Ubuntu 24.04. Followed your advice and reinstalled with apt. Works fine ! Thanks !

@Akinola003
Copy link

I also had the same issue with GIMP not opening with the same error logs. But following the solutions above i was able to resolve the issue and get it working and I also think the issue is with the "snap" since "apt" was able to insatll it without any issue. The solution used is below:

snap remove gimp
sudo apt install gimp

This should work.

@ejohb
Copy link

ejohb commented Dec 30, 2024

Removing/reinstalling left me with the same error.

@Akinola003
Copy link

Akinola003 commented Dec 30, 2024 via email

@jmims-magnusdigital
Copy link

I also had the same issue with GIMP not opening with the same error logs. But following the solutions above i was able to resolve the issue and get it working and I also think the issue is with the "snap" since "apt" was able to insatll it without any issue. The solution used is below:

snap remove gimp sudo apt install gimp

This should work.

This worked for me

@ejohb
Copy link

ejohb commented Dec 31, 2024

Did you do remove and install it through the terminal? If not do so through the terminal, don't use the software installer in Ubuntu. You can purge the gimp, you can find the commands in the earlier replies and Make sure to "sudo apt update" before installing again. Before you start the procedures make sure to restart your PC (there might be some issues after an update, happened to me multiple times)

Thanks for the info. I meant remove/install via snap didn't help. I realise I can install via apt but want to avoid that.

@dennn13
Copy link

dennn13 commented Dec 31, 2024

For me gimp starts after this connections
snap connect gimp:gnome-3-38-2004 gnome-3-38-2004:gnome-3-38-2004
snap connect gimp:gtk-3-themes gtk-common-themes:gtk-3-themes
snap connect gimp:gtk-2-engines gtk2-common-themes:gtk-2-engines

@gorbinphilip
Copy link

+1

Issue persists. Tried on Ubuntu 24.04.1 LTS
Works fine with apt

@olehkhol
Copy link

olehkhol commented Jan 2, 2025

Hi. I have the same issue for xubuntu 24.04.1.

@vsvsbr
Copy link

vsvsbr commented Jan 2, 2025

+1

I switched from snap package to apt and it worked for me.

@Akinola003
Copy link

Akinola003 commented Jan 2, 2025

Hi. I have the same issue for xubuntu 24.04.1.

Try the solutions in the replies above since Xubuntu is also based on Ubuntu: difference is just the desktop environ

@olehkhol
Copy link

olehkhol commented Jan 2, 2025

Hi. I have the same issue for xubuntu 24.04.1.

Try the solutions in the replies above since Xubuntu is also based on Ubuntu: difference is just the desktop environ

My exact intention was to install GIMP via Snap to ensure access to the latest version, which isn’t available through the deb package.

@ejohb
Copy link

ejohb commented Jan 3, 2025

Since this issue thread is over 3 years old, I'm sceptical anyone working on the project is actually seeing these comments.

@felipe-valerio
Copy link

felipe-valerio commented Jan 4, 2025

For me gimp starts after this connections
snap connect gimp:gnome-3-38-2004 gnome-3-38-2004:gnome-3-38-2004
snap connect gimp:gtk-3-themes gtk-common-themes:gtk-3-themes
snap connect gimp:gtk-2-engines gtk2-common-themes:gtk-2-engines

Amazingly this works. But it's surprising how this is still an issue in 2025 lol

@dephekt
Copy link

dephekt commented Jan 5, 2025

For me gimp starts after this connections
snap connect gimp:gnome-3-38-2004 gnome-3-38-2004:gnome-3-38-2004
snap connect gimp:gtk-3-themes gtk-common-themes:gtk-3-themes
snap connect gimp:gtk-2-engines gtk2-common-themes:gtk-2-engines

Amazingly this works. But it's surprising how this is still an issue in 2025 lol

It's not that this same issue has existed since 2021. It's just the issue of missing connections has showed up again in a similar way recently, which led people to find this similarly named but unrelated issue. There is a more recent one that actually references the current problem: #313

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