Debian11更换阿里源

Posted 吾乃世间奇才

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Debian11更换阿里源相关的知识,希望对你有一定的参考价值。

备份源文件

cp /etc/apt/sources.list /etc/apt/sources.list_backup

编辑源文件

vi /etc/apt/sources.list 

#添加如下
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
deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main
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

#然后
apt-get update

以上是关于Debian11更换阿里源的主要内容,如果未能解决你的问题,请参考以下文章

阿里云镜像切换阿里巴巴开源镜像站镜像——Debian镜像

Debian更换软件源

apt-get 软件源文件格式以及ubuntu 18.04更换阿里源

Debian stretch更换国内源

ubuntu更换国内源后怎么连接不上?

为debian8.2更换官方源