记录:安装ros时出现的依赖错误
输入sudo apt install ros-noetic-desktop-full之后就开始报这个错
python3-rosdep-modules : 依赖: python3-catkin-pkg-modules (>= 0.4.0) 但是它将不会被安装
而且提示:可以用sudo apt --fix-broken install不指名修复
然后报错E: Sub-process /usr/bin/dpkg returned an error code (1) /文章来源:https://www.toymoban.com/news/detail-511673.html
dpkg: error processing archive /var/cache/apt/archives/python-rospkg-modules_1.1.9-1_all.deb (--unpack):
trying to overwrite '/usr/lib/python2.7/dist-packages/rospkg/__init__.py', which is also in package python-rospkg 1.1.4-1
Errors were encountered while processing:
/var/cache/apt/archives/python-rospkg-modules_1.1.9-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
参考这篇博客:点击
方法:文章来源地址https://www.toymoban.com/news/detail-511673.html
#使用这个指令:sudo dpkg -i --force-overwrite <filename>
$ sudo dpkg -i --force-overwrite var/cache/apt/archives/python3-catkin-pkg-modules_0.4.24-1_all.deb
#然后:
$ sudo apt-get -f install
```提示:var/cache/apt/archives/python3-catkin-pkg-modules_0.4.24-1_all.deb为我自己的路径,你自己看自己sudo apt --fix-broken install后报错。
到了这里,关于ubuntu 20.04解决在处理时有错误发生: /var/cache/apt/archives/python3-catkin-pkg-modules_0.4.24-1_all.deb问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!