1. 备份
备份/etc/apt/sources.list
sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup
2. 下载对应版本的sources.list,放入/etc/apt/
wget -O /etc/apt/sources.list http://...../sources.list
3. 更新缓存
sudo apt-get update
4. 更新系统(有必要时)
sudo apt-get upgrade
5. 常用命令
- 安装软件:
sudo apt-get install -y 软件名
- 卸载软件:
卸载软件程序:
sudo apt-get remove 软件名
卸载软件程序及其配置文件:
sudo apt-get purge 软件名
- 升级版本(不推荐):
sudo apt-get dist-upgrade
- 查找软件安装包:
sudo dpkg -S 软件名
获取更多知识,请点击关注:
嵌入式Linux&ARM
CSDN博客
简书博客
网友评论