Debian换源至阿里源解决安装报错
关于我配置我家云然后安装debian时,经常安装报错,因此在这里简单介绍一下如何给debian换源,同时推荐使用阿里源,他会比清华源更加稳定好用。
- 备份配置文件
1
cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
- 编辑配置文件
1
vim /etc/apt/sources.list
- 具体国内源
1
2
3
4
5
6
7
8deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
引用自csdn
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 小贺同学的blog!
评论