1. 打开终端,输入以下命令以备份原来的 sources.list 文件:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak 

2. 编辑 sources.list 文件:

sudo nano /etc/apt/sources.list 

3. 将原来的内容全部删除,然后将以下内容复制到文件中:

deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib 
deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib 
 
deb http://mirrors.aliyun.com/debian-security bullseye-security main non-free contrib 
deb-src http://mirrors.aliyun.com/debian-security bullseye-security main non-free contrib 
 
deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib 
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib 
 
deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib 
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib 

 

4. 保存并退出编辑器,然后更新软件包列表:

sudo apt update 

5. 安装软件包:

sudo apt upgrade 

6. 安装完成后,您的 Debian 11 系统将使用阿里云镜像源。

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。