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
相关推荐
leoufung17 分钟前
vim 多个关键字高亮插件介绍Karoku0661 小时前
【CI/CD】CI/CD环境搭建流程和持续集成环境配置Nerd Nirvana3 小时前
软考—系统架构设计(案例 | 论文)勤奋的凯尔森同学4 小时前
webmin配置终端显示样式,模仿UbuntuDesktop终端月光水岸New5 小时前
Ubuntu 中建的mysql数据库使用Navicat for MySQL连接不上莫忘初心丶5 小时前
在 Ubuntu 22 上使用 Gunicorn 启动 Flask 应用程序技术小齐8 小时前
网络运维学习笔记 016网工初级(HCIA-Datacom与CCNA-EI)PPP点对点协议和PPPoE以太网上的点对点协议(此处只讲华为)ITPUB-微风9 小时前
Service Mesh在爱奇艺的落地实践:架构、运维与扩展打不了嗝 ᥬ᭄9 小时前
Linux的权限落幕9 小时前
C语言-进程