dpkg: error processing /var/cache/apt/archives/binutils-msp430_2.22~msp20110716p5-1_i386.deb



Unpacking binutils-msp430 (from .../binutils-msp430_2.22~msp20110716p5-1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/binutils-msp430_2.22~msp20110716p5-1_i386.deb (--unpack):
 trying to overwrite '/usr/bin/msp430-strip', which is also in package msp430-binutils-tinyos 2.21.1-20110821
No apport report written because MaxReports is reached already
 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/binutils-msp430_2.22~msp20110716p5-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

如果在使用apt-get时出现类似下面错误:
 
dpkg: error processing /var/cache/apt/archives/binutils-msp430_2.22~msp20110716p5-1_i386.deb (--unpack):
 
解决方法:
 
sudo dpkg -i --force-overwrite /var/cache/apt/archives/ binutils-msp430_2.22~msp20110716p5-1_i386.deb //强制安装
 
sudo apt-get -f install 

ps:1.dpkg本身是一个底层的工具。上层的工具,像是APT,被用于从远程获取软件包以及处理复杂的软件包关系。基于Debian的Linux发行版如Ubuntu、Knoppix也使用dpkg。
        2. dpkg -i --force-overwrite-i package 强制安装软件

是apt-get -f install=apt-get install -f(apt-get -f install 修复安装"-f = ――fix-missing" ),是修复依赖关系(depends)的命令,就是假如你的系统上有某个package不满足依赖条件,
这个命令就会自动修复,安装那个package依赖的package。



你可能感兴趣的:(linux)