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更换阿里源的主要内容,如果未能解决你的问题,请参考以下文章