更新ubuntu镜像源

作者: Leon_Geo | 来源:发表于2019-12-11 21:34 被阅读0次

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. 常用命令

  1. 安装软件:
sudo apt-get install -y 软件名
  1. 卸载软件:
卸载软件程序:
sudo apt-get remove  软件名
卸载软件程序及其配置文件:
sudo apt-get purge 软件名
  1. 升级版本(不推荐):
sudo apt-get dist-upgrade
  1. 查找软件安装包:
sudo dpkg -S 软件名

获取更多知识,请点击关注:
嵌入式Linux&ARM
CSDN博客
简书博客


相关文章

网友评论

    本文标题:更新ubuntu镜像源

    本文链接:https://www.haomeiwen.com/subject/sziagctx.html