广告

Debian8系统如何编辑文件sources.list更换下载源

2023-11-30

debian8系统如何编辑文件sources.list更换下载源?本教程以debian8系统为例

本配置适用于debian8,9版本

1.编辑sources.list文本

vi /etc/apt/sources.list
可以把之前的文本源拷贝到其他地方或者前面打#号

编辑sources.list文本

这边我打#号处理

2.更换源文本到sources.list文件上

163镜像站

deb http://mirrors.163.com/debian/ stretch main non-free contrib

deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib

deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib

deb-src http://mirrors.163.com/debian/ stretch main non-free contrib

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

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

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

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

中科大镜像站

deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free

deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free

deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free

deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free

deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

阿里云镜像站

deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib

deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib

deb http://mirrors.aliyun.com/debian-security stretch/updates main

deb-src http://mirrors.aliyun.com/debian-security stretch/updates main

deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib

deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib

deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

华为镜像站

deb https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free

deb-src https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free

deb https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free

deb-src https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free

deb https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free

deb-src https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free

清华大学镜像站

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free

deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free

deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free

deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free

deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free

兰州大学镜像站

deb http://mirror.lzu.edu.cn/debian stable main contrib non-free

deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free

deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free

deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free

deb http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free

deb-src http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free

deb http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free

deb-src http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free

上海交大镜像站

deb https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free

deb-src https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free

deb https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free

deb-src https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free

deb https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free

deb-src https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free

deb https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free

deb-src https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free

以上是各类源的文本

1.这边举例为163源替换上去

163源替换上去

文件保存退出

2.更新源

apt-get update

更新源

即可更换成功

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。本站原创内容未经允许不得转载,或转载时需注明出处!

上一篇:Window系统如何设置电脑磁盘共享

下一篇:Windows Server 2012 R2如何开启跟关闭ECN功能

这条帮助是否解决了您的问题?已解决未解决

提交成功!非常感谢您的反馈,我们会继续努力做到更好!很抱歉未能解决您的疑问。我们已收到您的反馈意见,同时会及时作出反馈处理!

立即注册91VPS账号,免费体验多款产品
立即注册
联系我们
全国咨询热线:
0712-5319406
QQ客服:
800193021
91VPS微信客服

扫码联系微信客服