目录
- 现象说明
- 解决办法
现象说明
打开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
发布评论