首先我们要知道,自己安装的Ubuntu的版本就是镜像文件版本,不同的Ubuntu对应的ROS的版本也不同。所以才有“没法定位软件包”的问题
ROS有Melodic、Lunar、Kinetic不同的种类对应着不同的ubuntu版本,
Melodic 主要对应:Ubuntu Artful (17.10), Bionic (18.04 LTS) 以及Debian Stretch
Kinetic 主要对应:Ubuntu Wily (15.10) and Ubuntu Xenial (16.04 LTS),
在安装的过程中要根据自己的ubuntu系统版本选择对应的ROS类型进行安装。
那么才会有不同的安装步骤
sudo apt-get install ros-melodic-desktop-full
sudo apt-get install ros-lunar-desktop-full
sudo apt-get install ros-kinetic-desktop-full
这样就可以安装完毕好ros的不同版本,记住之前如果有安装过其他ros版本记住要把环境变量要修改掉(简单点就是注释掉)否则会ROS_DISTRO was set to ‘noetic’ before. Please make sure that the environment does not mix paths from different dis