在安装显卡驱动的时候参考了一篇坑爹博客https://blog.csdn.net/qq_23082575/article/details/122160134使用了sudo apt-get autoremove命令删除所有功能包
补救方法1:
可以将删除的功能包一个一个sudo apt-get install
具体参考:
https://zhuanlan.zhihu.com/p/160926980
sudo apt-get autoremove的补救_ystsaan的博客-CSDN博客_autoremove怎么恢复
补救方法2:
太多的功能包安装太麻烦,写个脚本安装吧...
1、终端输入vi
在vi中编辑如下文件
#!/bin/sh
sudo apt-get install ros-melodic-bond-core
sudo apt-get install ros-melodic-rqt-py-console
sudo apt-get install ros-melodic-perception-pcl
sudo apt-get install ros-melodic-rqt-image-view
sudo apt-get install ros-melodic-desktop
sudo apt-get in