更新到 Ubuntu 20.04 后,打开 GIMP 时出现 GEGL 版本过旧错误。完整错误如下
GEGL version too old!
GIMP requires GEGL version 0.4.22 or later.
Installed GEGL version is 0.4.18.
Somehow you or your software packager managed
to install GIMP with an older GEGL version.
Please upgrade to GEGL version 0.4.22 or later.
但我检查了我安装的 gegl 版本是 0.4.22-3。
请帮忙!!!我无法使用 GIMP。
这是 /etc/apt/sources.list 文件
# deb cdrom:[Ubuntu 19.10 _Eoan Ermine_ - Release amd64 (20191017)]/ eoan main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ focal main restricted universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ eoan main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ eoan-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
# deb-src http://in.archive.ubuntu.com/ubuntu/ eoan universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ eoan-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# deb-src http://in.archive.ubuntu.com/ubuntu/ eoan multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ eoan-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ eoan-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu eoan partner
# deb-src http://archive.canonical.com/ubuntu eoan partner
deb http://security.ubuntu.com/ubuntu focal-security main restricted universe
# deb-src http://security.ubuntu.com/ubuntu eoan-security main restricted
# deb-src http://security.ubuntu.com/ubuntu eoan-security universe
# deb-src http://security.ubuntu.com/ubuntu eoan-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
答案1
我在 Ubuntu Mate 20.04 上遇到了同样的问题。
解决如下。otto-kesselgulasch存储库已折旧,不再维护。需要被取代。
sudo apt install ppa-purge
sudo ppa-purge ppa:otto-kesselgulasch/gimp
sudo add-apt-repository ppa:ubuntuhandbook1/gimp
sudo apt update && sudo apt upgrade
如果不起作用,你可能需要重新安装 GIMP
sudo apt install gimp gimp-gmic
这对我有用。
你可能还需要做
sudo apt autoremove
和
sudo apt update && sudo apt upgrade
进行多次循环,直到满足所有依赖关系并且删除未使用的依赖关系。
尝试安装 GEGL 对我没有帮助。我多次删除/清除 GIMP(和 GEGL 0.4.22 - 它安装正确!),但没有任何效果。但是,从头开始执行此例程在我的第二台机器上第一次就成功了!
谢谢Ubuntu 手册用于托管存储库。
答案2
我也遇到了同样的问题。你可以通过使用以下方法删除 gimp 来解决这个问题
sudo apt remove --auto-remove gimp
这还会删除 gimp 包的剩余依赖项,从而删除所有版本的 libgegl 和旧依赖项。
然后重新安装 gimp
sudo apt install gimp
这将安装 gimp 所需依赖项的最新版本。
答案3
sudo apt purge gimp
sudo apt purge libgegl-0.4-0
sudo apt install gimp
对我有用。
答案4
我已经从 Kubuntu 18.04 LTS 升级到 20.04 LTS。对我来说,上述解决方案均无效,由于 gegl 错误,无法启动 gimp。
我搜索了仍然安装的 gegl 版本:
$ sudo apt list | grep gegl
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
gegl/focal,now 0.4.22-3 amd64 [installiert]
gir1.2-gegl-0.4/focal 0.4.22-3 amd64
libgegl-0.4-0/now 1:0.4.18+om-0ubu18.04.18~ppa amd64 [Installiert,lokal]
libgegl-common/now 1:0.4.18+om-0ubu18.04.18~ppa all [Installiert,lokal]
libgegl-dev/focal 0.4.22-3 amd64
libgegl-doc/focal,focal 0.4.22-3 all
我删除了旧的 gegl 版本:
$ sudo apt-get remove libgegl-0.4-0
此后,gimp 再次启动 :-)