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
相关推荐
林间码客3 小时前
从DevOps到DevSecOps:构建现代软件交付的基石与护城河
大数据·运维·devsecops·devops
kyshipit3 小时前
Failed to take /etc/passwd lock: Invalid argument解决方案
ubuntu
李白你好3 小时前
Windows 离线 Linux 提权辅助查询工具
linux
Lust Dusk4 小时前
记一次Linux应急响应题目解析
linux·运维·服务器·网络·安全·网络安全
ShineWinsu4 小时前
对于Linux:五种IO模型以及非阻塞IO的详细解析
linux·c++·面试·io·阻塞·非阻塞·fcntl
千千寰宇4 小时前
[Linux/Ollama] Termux : 一款运行在 Android 平台上的开源终端模拟器与 Linux 环境应用、支持在手机上基于Ollama部署LLM
linux
轻揉小乔 真新人5 小时前
使用memc-nginx和srcache-nginx模块构建高效透明的缓存机制
运维·nginx·缓存
Yan_chen6665 小时前
SSH(Secure Shell)安全外壳协议详解
运维·网络协议·ssh
lingran__6 小时前
Linux 基础常用指令万字详解(上)|文件目录命令,结合底层原理剖析
linux·运维·服务器·后端·centos·linux基础指令
各类产品分享7 小时前
电力行业AR智能运维哪个品牌好
运维·ar·ar巡检