dpkg error: “trying to overwrite, which is also in package”

前端之家收集整理的这篇文章主要介绍了dpkg error: “trying to overwrite, which is also in package”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

问题

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

猜你在找的Ubuntu相关文章