问题描述
我正在按照本页http://wiki.ros.org/melodic/Installation/Ubuntu中的说明尝试在ubuntu 18.04上安装ros melodic,
当我使用此命令sudo apt install ros-melodic-desktop-full
时,我收到以下消息
Reading package lists... Done
Building dependency tree
Reading state @R_248_4045@ion... 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 @R_248_4045@ion may help to resolve the situation:
The following packages have unmet dependencies:
ros-melodic-desktop-full : Depends: ros-melodic-desktop but it is not going to be installed
Depends: ros-melodic-perception but it is not going to be installed
Depends: ros-melodic-simulators but it is not going to be installed
Depends: ros-melodic-urdf-sim-tutorial but it is not going to be installed
E: Unable to correct problems,you have held broken packages.
我尝试安装ros-melodic-desktop,但它始终显示依赖项错误消息。 请帮忙。
解决方法
sudo apt-get autoremove
如果这不起作用,则只需重新安装ubuntu。这是摆脱这些问题的更快方法。