Debian apt 更换阿里源

2022-08-24T16:46:00

查看debian版本

cat /etc/issue

备份官方源

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

修改为阿里源

vim /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
当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »