官网参考步骤:http://wiki.ros.org/melodic/Installation/Ubuntu
第一部分:安装ROS
1.1Configure your Ubuntu repositories
Configure your Ubuntu repositories to allow “restricted,” “universe,” and “multiverse.” You can follow the Ubuntu guide for instructions on doing this.
这句话的意思是把2-4都勾上(一般默认已勾)
看到有的教程这里第一个也勾了,不知道需不需要(可能不)这里点了好几次,如果点上了要输密码的。
1.2 Setup your sources.list
Setup your computer to accept software from packages.ros.org.
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
成功了应该是什么都没提示,像下面这样的问题,其实是我用谷歌翻译翻译成中文的网页后,复制下来的命令里双引号也变成中文的了,所以就错了。去英文的网页里复制就没什么问题。
1.3 Set up your keys
sud