apt dpkg: 错误:子进程粘贴被信号杀死( 损坏的管道)

分享于 

3分钟阅读

ubuntu

  繁體

问题

自动升级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-xmc 文件只能来自一个包,不能同时安装两个包。


答案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)

bro  DEB  PIP  PIPE  signal  粘贴