ROS 安装错误(Ubuntu 16.04 中的 ROS Kinetic) [英] ROS Installation error ( ROS Kinetic in Ubuntu 16.04 )

查看:213
本文介绍了ROS 安装错误(Ubuntu 16.04 中的 ROS Kinetic)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://wiki.ros.org/kinetic/Installat.. 中列出的步骤顺序.已被跟踪.(尝试在 Ubuntu 16.04 中安装 ROS kinetic)输入以下命令时出错:

$sudo apt-get install ros-kinetic-desktop-full

<块引用>

无法安装某些软件包.这可能意味着您请求了一个不可能的情况,或者如果您使用的是不稳定的发行版,则某些必需的包尚未创建或已从 Incoming 中移出.以下信息可能有助于解决这种情况:

以下软件包有未满足的依赖项: ros-kinetic-desktop-full : 依赖项: ros-kinetic-desktop 但不会安装依赖项: ros-kinetic-perception 但不会安装依赖项:ros-kinetic-simulators 但它不会被安装依赖:ros-kinetic-urdf-tutorial 但它不会被安装 E:无法纠正问题,你持有损坏的包.

解决方案

我遇到了同样的问题,因为我在 ROS 之前安装了 Gazebo.如果你做了同样的事情,那么你可能会得到这个错误.

您可以简单地卸载 Gazebo 及其依赖项,然后尝试安装完整版的 ROS.Gazebo 通常包含在 ROS 的完整版本中.如果您的版本中没有包含,那么安装ROS后,您可以安装Gazebo.

移除凉亭:

sudo apt-get 删除gazebo9

"gazebo9" 必须替换为您的 Gazebo 版本.

然后删除它的依赖

sudo apt-get autoremove

此命令将删除所有不必要的依赖项.之后,使用官方文档安装ROS.希望这对您有所帮助.

<块引用>

注意:ROS 完整版带有 Gazebo

The sequence of steps listed in http://wiki.ros.org/kinetic/Installat... have been followed. (Trying to install ROS kinetic in Ubuntu 16.04) Error when entering the following command :

$sudo apt-get install ros-kinetic-desktop-full

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-kinetic-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed Depends: ros-kinetic-perception but it is not going to be installed Depends: ros-kinetic-simulators but it is not going to be installed Depends: ros-kinetic-urdf-tutorial but it is not going to be installed E: Unable to correct problems, you have held broken packages.

解决方案

I had the same problem because I have installed Gazebo before ROS. If you have done the same thing, then you might get this error.

You can simply uninstall Gazebo and its dependencies, and then try installing the full version of ROS. Gazebo is usually included in the full versions of ROS. If it is not included in your version, then after installing ROS, you can install Gazebo.

Remove Gazebo:

sudo apt-get remove gazebo9

"gazebo9" has to be replaced with your version of Gazebo.

And then remove its dependencies

sudo apt-get autoremove

This command will remove all the unnecessary dependencies. After that, install ROS using the official documentation. Hope this will help you.

Note: ROS full versions comes with Gazebo

这篇关于ROS 安装错误(Ubuntu 16.04 中的 ROS Kinetic)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆