当我尝试在ROS上安装map_server时,发生了如下错误:
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:
ros-hydro-map-server : Depends: ros-hydro-roscpp but it is not going to be installed
Depends: ros-hydro-rostest but it is not going to be installed
Depends: ros-hydro-tf but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我该怎么解决?
答案 0 :(得分:0)
你能更具体一点吗?你尝试过哪些命令,你使用的是哪个ROS版本等... 此外,如果您有ROS Hydro版本,看起来您的安装会发生某些事情,我建议您重新安装它:
sudo apt-get remove ros-*
sudo apt-get install ros-#your_distro#-desktop-full
这可能会修复您的错误(如果您使用的是ROS Hydro)。 欢呼声,
答案 1 :(得分:0)
您也可以从源代码构建。代码点击github。
请确保选择与您的ubuntu操作系统兼容的分支。