我是靠谱客的博主 和谐台灯,最近开发中收集的这篇文章主要介绍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 更换apt源所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部