dpkg-deb:错误:子进程 paste 被信号终止(管道断裂)

dpkg-deb:错误:子进程 paste 被信号终止(管道断裂)

软件最新选项会自动下载 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)

答案1

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

删除包gimp-plugin-registrygimp

sudo apt-get remove gimp-plugin-registry gimp

修复包

sudo apt-get -f

更新 Gimp 包

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install gimp gimp-plugin-registry

安装gimp-plugin-registrygimp

sudo apt-get install gimp-plugin-registry gimp

答案2

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

从版本号来看,您的 gimp 软件包(但不是 gimp-plugin-registry)来自非官方软件包源。因此,您应该尝试寻找可gimp-plugin-registry与该 gimp 软件包配合使用的软件包,或者恢复为官方 gimp 软件包。

答案3

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)

好的,这是一个一般性的答案,而不是 OP 的问题。

此消息表明某个包正在尝试覆盖另一个包中包含的文件。最安全的解决方案是删除两个包中的一个。在这个例子中,它可以是gimpgimp-plugin-registry

这通常是由于添加了维护不太好的 PPA,因为这些问题已由主存储库中的机器人修复。

相关内容