在 Ubuntu 上 GIMP 启动失败 的原因有很多种,下面按常见原因 → 排查方法 → 解决办法给你梳理一下。
报错类似:
error while loading shared libraries: libxxx.so.x: cannot open shared object file
✅ 解决:
sudo apt update
sudo apt install -f
sudo apt install gimp
或重装:
sudo apt remove gimp
sudo apt autoremove
sudo apt install gimp
GIMP 配置在:
~/.config/GIMP/
~/.gimp-2.10/
✅ 解决(临时测试):
mv ~/.config/GIMP ~/.config/GIMP.bak
gimp
如果能启动,说明是配置问题。
在 Wayland 下有时 GIMP 启动异常。
✅ 解决:
GIMP_DISABLE_XSHM=1 gimp
ls -ld ~
✅ 解决:
sudo chown -R $USER:$USER ~
Snap 版 GIMP 容易因权限或沙箱失败。
✅ 查看安装方式:
which gimp
snap list | grep gimp
flatpak list | grep gimp
✅ 建议:
sudo snap remove gimp
sudo apt install gimp
启动失败但没提示?用终端看日志:
gimp
或:
gimp --verbose
把终端输出的错误信息复制出来,就能精准定位。
sudo apt install -f 是否执行~/.config/GIMP请把下面信息发给我:
lsb_release -a)gimp 的完整报错信息我可以直接告诉你是哪一行导致启动失败。