我是靠谱客的博主 和谐台灯,这篇文章主要介绍Debian10 更换apt源,现在分享给大家,希望可以做个参考。

http://mirrors.163.com/.help/debian.html 163 官方源地址,每4小时更新一次

如果是 Debian10 更换apt源,查看debian10具体代号,是buster,如下所示:

root@4479ca5eb213:/etc/apt# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

所以需要将163 官方源地址的代号统一改为buster即可,如下所示(以下只是2020/6/16的示例,具体需要根据163 官方源地址最新发布内容进行更改)

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

将内容覆盖到 /etc/apt/sources.list,最后通过 apt-get update 进行更新

最后

以上就是和谐台灯最近收集整理的关于Debian10 更换apt源的全部内容,更多相关Debian10内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(251)

评论列表共有 0 条评论

立即
投稿
返回
顶部