问题
ROS包安装过程中,出现问题,按照提示
执行以下命令
sudo apt-get -f install
然后出现一下问题:
dpkg: error processing archive /var/cache/apt/archives/libaria2_2.8.0+repack-1ubuntu1_amd64.deb (--unpack):
trying to overwrite '/etc/Aria',which is also in package libaria 2.9.1a+ubuntu12
Errors were encountered while processing:
/var/cache/apt/archives/libaria2_2.8.0+repack-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
解释
问题出在有两个相同的包需要写同一个目录出现了冲突,所示我们无法安装新的包.
解决方案
sudo dpkg -P libaria
执行修正
sudo apt-get install -f
原文链接:https://www.f2er.com/ubuntu/349931.html