[How to Fix] dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

1. Problem: There is a dependency problem during the Ubuntu software installation process

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

The following two commands as instructed did not solve the problem.

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

Instead, the problem of “DPkg-deb: error: paste subprocess was killed by signal (Broken pipe)” appeared again

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:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Final solution:

sudo apt-get autoremove ros-melodic-moveie-experimental
sudo apt-get -f install

Postscript: the origin of this problem is a legacy problem that occurred when installing ros under ubuntu18.04. As it had no impact on normal software installation, it was abandoned. However, today when installing teamviewer, I encountered a dependency problem and reported an error when -f install could not be performed. After many unsuccessful attempts to re-install ROS, I unexpectedly purge the command and failed to execute. As a result, The problem is overwhelming and I have little knowledge of the system.

Read More: