The program roscore is currently not installed

编程入门 行业动态 更新时间:2024-10-26 18:25:18

目录

      • 现象说明
      • 解决办法

现象说明

打开roscore发现

The program ‘roscore’ is currently not installed. You can install it by typing: sudo apt install python-roslaunch

按照提示:sudo apt install python-roslaunch
喜提如下错误:

Reading package lists… Done Building dependency tree Reading state information… Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-roslaunch : Depends: python-roslib
but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sudo apt install python-roslib

Reading package lists… Done Building dependency tree Reading
state information… Done Some packages could not be installed. This
may mean that you have requested an impossible situation or if you are
using the unstable distribution that some required packages have not
yet been created or been moved out of Incoming. The following
information may help to resolve the situation:

The following packages have unmet dependencies: python-roslib :
Depends: catkin but it is not going to be installed E: Unable to
correct problems, you have held broken packages.

再试sudo apt install catkin

Depends: python-catkin-pkg but it is not going to be installed

一条路走到黑sudo apt install python-catkin-pkg Reading package lists…
Done Building dependency tree Reading state information… Done
python-catkin-pkg is already the newest version (0.3.1-1). 0 upgraded,
0 newly installed, 0 to remove and 0 not upgraded.

直到撞了南墙

解决办法

1、没有source导致的

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc`
source ~/.bashrc

2、没有安装python-roslaunch导致
应该安装ros-kinetic-roslaunch,而不是python-roslaunch

sudo apt install ros-kinetic-roslaunch

更多推荐

The program roscore is currently not installed

本文发布于:2023-06-14 09:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1462017.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:program   roscore   installed

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!