赞
踩
在安装ROS2的devtools时,遇到一个很烦的问题:
Errors were encountered while processing:
/var/cache/apt/archives/python3-catkin-pkg-modules_0.5.2-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
一直报这个错。
手动 sudo apt-get install python3-catkin-pkg-modules 安装也是一样。还提示:
dpkg: error processing archive /var/cache/apt/archives/python3-catkin-pkg-modules_0.5.2-1_all.deb (--unpack):
trying to overwrite '/usr/lib/python3/dist-packages/catkin_pkg/__init__.py', which is also in package python3-catkin-pkg 0.4.24-2
最后是这样解决的:
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk # 备份一下
sudo mkdir /var/lib/dpkg/info
sudo apt-get update
sudo apt-get install -f
居然就正常安装了。
后面的安装步骤就很顺利了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。