无法在 Ubuntu 20.04 上安装 ROS Melodic [英] Unable to install ROS Melodic on Ubuntu 20.04

查看:197
本文介绍了无法在 Ubuntu 20.04 上安装 ROS Melodic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用这些命令在 Ubuntu 20.04 上安装 ROS Melodic

I am trying to install ROS Melodic on Ubuntu 20.04 using these commands

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt update
sudo apt install ros-melodic-desktop-full

但我收到此错误

E: Unable to locate package ros-melodic-desktop-full

我尝试安装不同版本和 Kinetic Kame,但它们都给我同样的错误.

I have tried to install the different versions and Kinetic Kame but they all give me the same error.

推荐答案

在您的情况下,这不起作用.Ubuntu 20 没有 ROS 版本,Melodic 只能在 Ubuntu 18 上找到.如果你有选择,我建议你安装 Ubuntu 18.

ROS 有一个严格的版本控制方案,与 不同版本的 Ubuntu 保持一致.例如:

ROS has a strict versioning scheme that aligns with different versions of Ubuntu. Ex:

  • Ubuntu 14(又名 Trusty)== ROS Indigo
  • Ubuntu 16(又名 Xenial)== ROS Kinetic
  • Ubuntu 18(又名 Bionic)== ROS Melodic
  • Ubuntu 20(又名 Focal)== ROS Noetic
  • Ubuntu 22(不适用)

(您仍然可以手动编译 ROS,但为了理智起见,我建议您不要这样做.少出错)

(You can still, like, manually compile ROS, but I'd recommend against it for sanity's sake. Less things to go wrong)

编辑!

我最初是在 2020 年 5 月 22 日写的,没有意识到 ROS Noetic 将在 5 月 23 日发布,2020.它应该有完整的官方 apt 支持,就像其他 ROS 版本一样.如果您打算使用 Ubuntu 20 与 18,Noetic 通过 apt 安装 现在是官方出路!

I originally wrote this on May 22, 2020, not realizing that ROS Noetic was going to be released on May 23, 2020. It should have full official apt support, just like the rest of the ROS versions. If you're set on using Ubuntu 20 vs 18, Noetic installed via apt is now the official way to go!

这篇关于无法在 Ubuntu 20.04 上安装 ROS Melodic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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