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 -
问题就可以解决了。