【问题标题】:How to install ROS on Ubuntu 18.04?如何在 Ubuntu 18.04 上安装 ROS?
【发布时间】:2020-01-21 19:12:27
【问题描述】:

我正在运行 Ubuntu 18.04 并尝试在我的机器上首次安装 ROS。我已尝试按照以下说明进行操作:http://wiki.ros.org/melodic/Installation/Ubuntu

我在这部分卡住了。

sudo apt-get install ros-melodic-desktop-full

我的尝试:

sudo apt -f install

sudo apt update --fix-missing

sudo dpkg --configure -a

sudo dpkg --remove --force-remove--reinstreq

sudo apt clean

sudo apt update

sudo rm /var/lib/apt/lists/lock

sudo rm /var/cache/apt/archives/lock

到目前为止没有任何效果。

终端命令:

$sudo apt-get install ros-melodic-desktop-full
Reading package lists… Finished
Builds dependency trees
Reading state information ... Finished
Some packages could not be installed. It may mean that you have requested
an impossible situation or, if you use the unstable distribution
that some necessary packages have not yet been created or moved
from "Incoming".
The following information may help to resolve the situation:

The following packages have dependencies that cannot be satisfied:
 rose-melodic-desktop-full: Dependent on: rose-melodic-desktop but it will not be installed
                            Depending on: rose-melodic-perception but it will not be installed
                            Depending on: rose-melodic-simulators but it will not be installed
                            Depending on: ros-melodic-urdf-sim-tutorial but it will not be installed
E: Could not correct the problems, you have withheld broken packages.

请帮我安装ROS

【问题讨论】:

  • 这就是我的答案:使用aptitude

标签: ubuntu-18.04 ros


【解决方案1】:

首先在 ubuntu 上安装程序。

sudo apt-get update

sudo apt-get upgrade 

更新数据包后,再次尝试按照enter link description here 的说明进行操作

【讨论】:

  • 试试这个:sudo apt autoclean、sudo apt-get clean、sudo apt autoremove
  • 嗨,谢谢您的提示,您使用的命令至少发生了一些事情。但我仍然遇到同样的错误:sudo apt-get install ros-melodic-desktop-full
  • 嗨,我知道是 ubuntu 中未使用的数据包出错了。
  • 是的,但我无法清除 ros 包并重新下载它,只会给出同样的错误。我是否应该单独添加依赖项,如果是的话怎么办?
  • 如果您发布答案,请将所有相关信息添加到答案本身
【解决方案2】:

1 - 按照 ROS melodic 安​​装的第一步(见下面的链接),尝试使用“sudo apt install ros-melodic-desktop”下方的链接“click here”安装它-full" 行

ROS melodic Installation page

如果它不起作用

2 - 检查“软件和更新”参数 (如果找不到:启动“Ubuntu 软件中心”并在顶部的菜单栏中选择“软件和更新”) 在“其他软件”标签中,链接

"http://pacckage.ros.org/ros/ubuntu仿生主"

已打印,并且在“Authentication”选项卡中打印了 Open Robotics 中的一个键

3 - 再次尝试执行 1-,如果不起作用,请执行 4-

4 - 在“更新”选项卡中,选中“推荐更新”,启动“更新管理器”并安装更新(我没有t 在我的电脑上正确执行)

5 - 最后你需要手动安装 rosdep : "sudo apt-get install python-rosdep"

【讨论】:

    【解决方案3】:

    Ubuntu (apt) 不允许安装同名但不同版本的软件包。

    先删除其他版本。例如:apt remove ros-desktop*

    【讨论】:

      【解决方案4】:

      我是这样工作的:

      1. 安装部门:

        sudo apt install Gazebo9-common libgazebo9-dev Gazebo9 ros-melodic-gazebo-ros-pkgs ros-melodic-gazebo-dev ros-melodic-gazebo-ros-control ros-melodic-gazebo-ros ros-melodic-urdf -sim-tutorial ros-melodic-simulators

      2. 安装ros旋律

        sudo apt-get install ros-melodic-desktop-full

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-06-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-12-01
        相关资源
        最近更新 更多