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
相关推荐
Karoku0661 分钟前
【docker集群应用】Docker网络与资源控制梦游钓鱼8 分钟前
pyshark安装使用,ubuntu:20.04火龙谷11 分钟前
CentOS7将yum源更换为国内源教程战族狼魂35 分钟前
CentOS 上安装各种应用的命令行总结学Linux的语莫1 小时前
ansible变量北京迅为1 小时前
【北京迅为】iTOP-4412全能版使用手册-第十二章 Linux系统编程简介清源妙木真菌1 小时前
Linux:进程控制爱吃喵的鲤鱼1 小时前
Linux——文件系统清尾、动静态库最数据2 小时前
Linux或者Docker中时区查询和修改(差8小时问题)mahuifa2 小时前
ubuntu设置程序开机自启动