代码改变世界

ros2安装经验总结

2023-06-13 18:21  tangxiaosheng  阅读(115)  评论(0编辑  收藏  举报

按照官网来安装的,

ubuntu20上面安装galactic系列。参考 ubuntu install ros2 
碰到问题,无法apt update, 提示“NO_PUBKEY F42ED6FBAB17C654”,参考
https://answers.ros.org/question/398460/how-to-add-a-pubkey/

解决。

我是在osboxes的镜像中安装的,已经通过mobaxterm登陆了,但后来在图形界面里设置了manual proxy,但似乎在Mobaxterm中没有生效。
于是安装了proxychains4,设置dynamic-rule和sock代理,然后结合上面的那个链接提供的方案,成功安装。

ubuntu22上面安装humble系列,安装中遇到

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 ros-humble-ament-cmake-core : Depends: python3-catkin-pkg-modules but it is not going to be installed
 ros-humble-qt-gui : Depends: python3-catkin-pkg-modules but it is not going to be installed
 ros-humble-ros2doctor : Depends: python3-catkin-pkg-modules but it is not going to be installed

执行 apt --fix-broken install,还是没法解决问题。最后是按照 Dependency issue [duplicate] 来解决的。