ubuntu18.04 安装 ros 报错 E: Unable to locate package ros-melodic-desktop-full
按照官网流程出现了这种问题。
一般出现这种问题是系统版本和ros版本不匹配,但是我系统Ubuntu18.04和ros melodic版本匹配还是出现了这个问题。
应该是1.3Set up your keys这一步的这两条指令没有分两步执行,而是直接复制所有指令-粘贴-运行
sudo apt install curl # if you haven't already installed curl curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
解决方法:
分两步执行:
首先执行
sudo apt install curl
再执行
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
问题就可以解决了。
在尝试按照ROS Melodic的官方指南在Ubuntu18.04上安装时遇到了'E:Unable to locate package ros-melodic-desktop-full'的问题。通常这个错误意味着系统版本和ROS版本不匹配,但在这个情况下,尽管两者匹配,问题依然存在。问题的根源在于安装密钥的步骤中,一次性执行了两条命令。正确做法是分开执行:先运行'sudo apt install curl',然后运行'curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -'。遵循此方法可以解决安装过程中遇到的报错。
1万+





