apt 镜像源
apt 镜像源
一键替换成清华源三条命令:
========【sudo sed -i 's/mirrors.aliyun.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list 】==================
========【sudo apt update 】==================
========【cat /etc/apt/sources.list 】==================
执行完第三条,你会看到:mirrors.tuna.tsinghua.edu.cn这就代表清华源成功换上了。
======== = ========= == ======== === ========= =
最后一步刷新缓存(必做)
========【sudo apt update 】======================== ==== ====== ==== ==== ===== == ========= ==========
备用:一键切回阿里源命令:
========【sudo sed -i 's/mirrors.tuna.tsinghua.edu.cn/mirrors.aliyun.com/g' /etc/apt/sources.list && sudo apt update 】==================
========【apt list --upgradable】
作用:查看当前系统里,有哪些软件可以更新升级
========【】==================