添加 Ubuntu更换中科大镜像源.md

This commit is contained in:
8ga
2026-03-23 13:17:59 +08:00
parent 943345e618
commit 9b7f93690a

View File

@@ -0,0 +1,18 @@
## Ubuntu 24.04
```bash
# 备份原文件(可选)
sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak
```
```bash
sudo sed -i 's|http://archive.ubuntu.com|http://mirrors.ustc.edu.cn|g' /etc/apt/sources.list.d/ubuntu.sources
```
```bash
sudo sed -i 's|http://security.ubuntu.com|http://mirrors.ustc.edu.cn|g' /etc/apt/sources.list.d/ubuntu.sources
```
```bash
sudo apt update
```