1.备份源文件
bashcp /etc/apt/sources.list /etc/apt/sources.list.bak
2.打开源文件,注释默认的源
bashvim /etc/apt/sources.list
bash## 注释原本内容 # deb http://mirrors.ivolces.com/ubuntu/ focal main restricted universe multiverse # deb-src http://mirrors.ivolces.com/ubuntu/ focal main restricted universe multiverse # deb http://mirrors.ivolces.com/ubuntu/ focal-security main restricted universe multiverse # deb-src http://mirrors.ivolces.com/ubuntu/ focal-security main restricted universe multiverse # deb http://mirrors.ivolces.com/ubuntu/ focal-updates main restricted universe multiverse # deb-src http://mirrors.ivolces.com/ubuntu/ focal-updates main restricted universe multiverse # deb http://mirrors.ivolces.com/ubuntu/ focal-proposed main restricted universe multiverse # deb-src http://mirrors.ivolces.com/ubuntu/ focal-proposed main restricted universe multiverse # deb http://mirrors.ivolces.com/ubuntu/ focal-backports main restricted universe multiverse # deb-src http://mirrors.ivolces.com/ubuntu/ focal-backports main restricted universe multiverse ## 添加新内容 deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
3.保存退出ESC+:wq!
4.更新源
bashapt-get update
5.更新系统软件
bashapt-get dist-upgrade apt-get upgrade
Ubuntu20.04如何更换国内源-阿里云源
心软且酷丶2023-08-31 21:43
相关推荐
蒲公英的孩子12 分钟前
DCU异构程序——Bank冲突xxxx12344513 分钟前
Linux-Ubuntu之RTC实时时钟显示AI探索家_星海算力16 分钟前
如何配置【Docker镜像】加速器+【Docker镜像】的使用IT 古月方源19 分钟前
文件上传漏洞 (网络安全)三天不学习27 分钟前
【linux系统】mysql 数据库迁移至新服务器北顾南栀倾寒37 分钟前
[Linux]进程间通信-共享内存与消息队列冬天vs不冷1 小时前
Shell编程详解冰宸旻1 小时前
y7000p&2023&AX211&ubuntu20&无线网卡驱动cuckooman1 小时前
Ubuntu无法创建python venv环境开着拖拉机回家1 小时前
【Linux】UOS统信服务器本地yum源搭建实践