问题:dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

 1. 问题:Ubuntu安装软件的过程中出现依赖项的问题

 “E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).” 

按照指示执行如下两条命令都没有解决问题。

sudo apt-get -f install
sudo apt-get --fix-broken install

反而又出现“dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)”的问题

Preparing to unpack .../ros-melodic-moveit-core_0.10.8-0bionic.20181227.040044_amd64.deb ...
Unpacking ros-melodic-moveit-core (0.10.8-0bionic.20181227.040044) over (0.10.5-0bionic.20181117.193206) ...
dpkg: error processing archive /var/cache/apt/archives/ros-melodic-moveit-core_0.10.8-0bionic.20181227.040044_amd64.deb (--unpack):
 trying to overwrite '/opt/ros/melodic/include/moveit/collision_distance_field/collision_detector_allocator_distance_field.h', which is also in package ros-melodic-moveit-experimental 0.10.5-0bionic.20181117.194840
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/ros-melodic-moveit-core_0.10.8-0bionic.20181227.040044_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

最终解决办法:

sudo apt-get autoremove ros-melodic-moveie-experimental(总之就是出错的几个全都autoremove掉)
sudo apt-get -f install

后记:这个问题的起源是在ubuntu18.04下安装ros时出现的遗留问题,因为对一般的软件安装没有影响,所以就弃置不管,但是今天安装teamviewer时遇到了依赖项问题,执行-f install 的时候报错不能执行,所以才痛下决心解决这个问题。最初多方尝试无果,准备重新安装ros,没想到purge命令居然不能执行,足见这个问题之霸道,而我对系统了解之浅薄。

你可能感兴趣的:(Ubuntu)