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
相关推荐
Java王小怪44 分钟前
Docker环境Redis没挂载保存数据
运维·docker·容器
你住过的屋檐1 小时前
【Nginx】linux上安装nginx
linux·运维·nginx
宵时待雨1 小时前
linux笔记归纳17:传输层协议UDP
linux·笔记·udp
晓晓_za8986683 小时前
开源 GEO 优化源码二次开发:贴牌改造与业务模块扩展实践
java·运维·服务器·开发语言·性能优化·开源
SCandL1523 小时前
k8s service
linux·容器·kubernetes
云计算DevOps-韩老师3 小时前
【MySQL运维DBA】【SQL基础系列002篇】
运维·mysql·dba
DBA大董3 小时前
TDengine3.0 DBA常用的运维命令和SQL2
运维·数据库·时序数据库·dba·tdengine
会飞的土拨鼠呀4 小时前
Linux的存储使用率应该如何计算
linux·运维·服务器
Elastic 中国社区官方博客4 小时前
OpenTelemetry Java 扩展:无需分叉 agent 即可自定义追踪
java·大数据·运维·开发语言·数据库·人工智能·elasticsearch
aaaBsBsBsB5 小时前
k8s pod管理
运维·docker·容器