在software&update里面把所有的更新都打开,再sudo apt update再安装即可,安装完后如果rosdep init或者rosdep update失败,报错为各种网站打不开什么的,很有可能是因为github被墙了,自己想办法吧
sudo apt update
rosdep init
rosdep update