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

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


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) 

如果您使用自定义PPA for Gimp将其删除。

删除包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 

gimp包含已由软件包gimp-plugin-registry安装的文件/usr/lib/gimp/2.0/plug-ins/file-xmc 。 作为一个文件只能来自一个包,你不能安装这两个包。

从版本号来看,你的gimp包(但不是gimp-plugin-registry)来自非官方的包源。 所以你应该尝试找一个与gimp包兼容的gimp-plugin-registry包,或者恢复到官方的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) 

好的,这是一个普遍的答案,而不是OP的问题。

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

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