升级到 Gimp 2.8 PPA 失败并出现“dpkg-deb 错误”?

升级到 Gimp 2.8 PPA 失败并出现“dpkg-deb 错误”?

升级 Gimp 出现以下错误:

Preparing to replace gimp 2.6.12-1ubuntu1 (using .../gimp_2.8.0-1ubuntu0ppa3~precise_amd64.deb) ...
Unpacking replacement gimp ...
dpkg: error processing /var/cache/apt/archives/gimp_2.8.0-1ubuntu0ppa3~precise_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/gimp/2.0/plug-ins/file-xmc', which is also in package gimp-plugin-registry 3.5.4-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gimp_2.8.0-1ubuntu0ppa3~precise_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

您应该在升级之前删除 GIMP 插件注册表包:

sudo apt-get remove gimp-plugin-registry

因为该软件包尚未编译 GIMP 2.8 支持。

现在,运行以下命令:

sudo apt-get dist-upgrade

来源

答案2

您没有正确删除 gimp-plugin-registry,它仍然会产生冲突,如错误消息所示。尝试:

sudo apt-get update
sudo dpkg --purge gimp gimp-plugin-registry
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install gimp

答案3

apt-get install gimp我认为你应该重新安装 GIMP。卸载后在终端中输入以安装它。

答案4

首先尝试升级它。否则尝试这个:

sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update && sudo apt-get install gimp

相关内容