如果你之前安装过ROS系统然后卸载了再次安装ROS系统的时候可能会遇到依赖问题,然后会发现很多依赖无法安装,报错E: Unable to correct problems, you have held broken packages
解决方法
用aptitude自动解决依赖问题
sudo apt-get install aptitude
然后
sudo aptitude install <package>
然后会跳出来一堆解决方案,自己查看解决方案是否安装了你需要的包
是就按y,不是就一直按n,直到找到你要的包为止。