Ubuntu22.04系统apt换国内源

Ubuntu系统apt换国内源

1、备份 list 文件

为了防止下面哪一步出错,需要提前备份一下 list 文件,以防万一:

bash 复制代码
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2、修改 list 文件

bash 复制代码
sudo vim /etc/apt/sources.list

3、各种国内软件源

阿里:

bash 复制代码
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

4.更新源

bash 复制代码
sudo apt update
相关推荐
小张成长计划..19 小时前
【Linux】10:冯·诺依曼体系结构和操作系统
linux·运维·服务器
悦儿遥遥雨11 天前
PXE + Kickstart 无人值守批量部署系统
linux·javascript·nginx
Imagine Miracle1 天前
【WSL】让WSL2后台持久运行不自动关闭的解决方案
linux·windows·wsl
兔C1 天前
Linux 命令行入门学习资料 day_2
linux·运维·服务器
eggcode1 天前
Linux命令基础与操作技巧
linux
二宝哥1 天前
VMware Workstation 实战:CentOS 7.9 安装、桥接网络配置与克隆管理详解
linux·centos·vmware
枕星而眠1 天前
【数据结构】红黑树入门指南
运维·数据结构·c++·后端
AutumnWind04201 天前
【4种打开Ubuntu(WSL)的方法】
linux·ubuntu
辞旧 lekkk1 天前
【Qt系统相关】鼠标事件
linux·开发语言·qt·学习·计算机外设·萌新
snow@li1 天前
深入理解内核与操作系统的关系
运维·服务器·microsoft