dpkg: error processing archive 处理归档出错

安装中有可能因为安装之前未把之前版本删掉等原因,发现出现类似如下错误:
dpkg: error processing archive /var/cache/apt/archives/ros-kinetic-assisted-teleop_0.2.1-0xenial-20190609-163240-0800_arm64.deb (--unpack):
trying to overwrite '/opt/ros/kinetic/lib/liblaser_scan_filters.so', which is also in package ros-kinetic-laser-filters 1.8.5-0xenial-20181118-065353-0800
Errors were encountered while processing:
/var/cache/apt/archives/ros-kinetic-assisted-teleop_0.2.1-0xenial-20190609-163240-0800_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 

用下面命令强行重新
sudo dpkg -i --force-overwrite /var/cache/apt/archives/ros-kinetic-assisted-teleop_0.2.1-0xenial-20190609-163240-0800_arm64.deb
 
 
已邀请:

要回复问题请先登录注册