debian 10 阿里 源
时间: 2024-06-08 14:05:10 浏览: 234
DebianUbuntu关键镜像源替换
要将 Debian 10 切换到阿里云源,可以按照以下步骤操作:
1. 备份原有的源配置文件 `/etc/apt/sources.list`:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 编辑 `/etc/apt/sources.list` 文件,用以下内容替换其中的内容:
```
deb http://mirrors.aliyun.com/debian buster main contrib non-free
deb-src http://mirrors.aliyun.com/debian buster main contrib non-free
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian buster-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian buster-updates main contrib non-free
deb http://mirrors.aliyun.com/debian buster-backports main contrib non-free
deb-src http://mirrors.aliyun.com/debian buster-backports main contrib non-free
```
3. 更新源列表:
```
sudo apt update
```
现在你的 Debian 10 系统已经切换到阿里云源了。
阅读全文