dpkg-deb:错误:子进程粘贴被信号杀死(断管)

Man*_*ria 5 apt dpkg

软件更新选项会自动下载 GIMP 的升级版。但是在安装时给了我错误。如何升级相同


Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  gimp
Suggested packages:
  gimp-help-en gimp-help libgimp-perl gimp-gap gimp-console
The following packages will be upgraded:
  gimp
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,388 kB of archives.
After this operation, 324 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 151157 files and directories currently installed.)
Preparing to replace gimp 2.6.11-2ubuntu4 (using .../gimp_2.7.4-2011102201~oo_amd64.deb) ...
Unpacking replacement gimp ...
dpkg: error processing /var/cache/apt/archives/gimp_2.7.4-2011102201~oo_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.7.4-2011102201~oo_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

Bru*_*ira 3

如果您使用 Gimp 的自定义 PPA,请将其删除。

取出包装gimp-plugin-registrygimp

sudo apt-get remove gimp-plugin-registry gimp
Run Code Online (Sandbox Code Playgroud)

修复包

sudo apt-get -f
Run Code Online (Sandbox Code Playgroud)

更新 Gimp 包

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install gimp gimp-plugin-registry
Run Code Online (Sandbox Code Playgroud)

安装gimp-plugin-registrygimp

sudo apt-get install gimp-plugin-registry gimp
Run Code Online (Sandbox Code Playgroud)


Flo*_*sch 1

包含已由软件包安装的gimp文件。由于文件只能来自一个包,因此您不能同时安装这两个包。/usr/lib/gimp/2.0/plug-ins/file-xmcgimp-plugin-registry

从版本号来看,您的 gimp 软件包(但不是 gimp-plugin-registry)来自非官方软件包源。gimp-plugin-registry因此,您应该尝试找到与该 gimp 软件包兼容的软件包,或者恢复到官方 gimp 软件包。