From 9b7f93690ad0fbab490640a48ef6cf32b0476aaa Mon Sep 17 00:00:00 2001 From: 8ga Date: Mon, 23 Mar 2026 13:17:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20Ubuntu=E6=9B=B4=E6=8D=A2?= =?UTF-8?q?=E4=B8=AD=E7=A7=91=E5=A4=A7=E9=95=9C=E5=83=8F=E6=BA=90.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ubuntu更换中科大镜像源.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Ubuntu更换中科大镜像源.md diff --git a/Ubuntu更换中科大镜像源.md b/Ubuntu更换中科大镜像源.md new file mode 100644 index 0000000..50a5fd5 --- /dev/null +++ b/Ubuntu更换中科大镜像源.md @@ -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 +``` \ No newline at end of file