安装 ros 时出错 map_server

Error installing ros map_server

当我尝试在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.

我该如何解决?

能具体点吗?比如你尝试了哪些命令,你使用的是哪个 ROS 版本等等...... 另外,如果你有 ROS Hydro 版本,你的安装似乎出了问题,我建议重新安装它:

sudo apt-get remove ros-*
sudo apt-get install ros-#your_distro#-desktop-full

这可能会修复您的错误(同样,如果您使用的是 ROS Hydro)。 干杯,

您也可以从源代码构建。 github.

上的代码

请务必选择os与您的 ubuntu os 兼容的分支。