选择国内镜像,可参考官方给出的中国镜像源
http://wiki.ros.org/ROS/Installation/UbuntuMirrors
USTC:
URL: http://mirrors.ustc.edu.cn/ros/
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
但是,请注意!由于我的系统是Linux Mint 19.3 Tricia,虽然它是基于Ubuntu 18.04 LTS 操作系统。而它的codename是Bionic。
因此,需要在/etc/apt/sources.list.d/ros-latest.list中修改
sudo gedit /etc/apt/sources.list.d/ros-latest.list
原本是
deb http://mirrors.ustc.edu.cn/ros/ubuntu/ tricia main
需要修改为
deb http://mirrors.ustc.edu.cn/ros/ubuntu/ bionic main
这里需要把tricia替换成bionic才行。
最后执行
sudo apt-get update