我是靠谱客的博主 干净项链,这篇文章主要介绍Debian9.4更换源的正确姿势#备份原有的源配置文件#删除该源配置文件#生成国内的源配置文件#更新源,现在分享给大家,希望可以做个参考。

#备份原有的源配置文件

$ cp /etc/apt/sources.list /etc/apt/sources.listbak 

#删除该源配置文件

$ rm -f /etc/apt/sources.list

#生成国内的源配置文件

$ echo "deb http://ftp.cn.debian.org/debian/ stretch main" > /etc/apt/sources.list
$ echo "deb http://ftp.cn.debian.org/debian/ stretch-updates main" >> /etc/apt/sources.list 
$ echo "deb http://ftp.cn.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list

#更新源

$ apt-get update


debian的全球镜像站:

https://www.debian.org/mirror/list

最后

以上就是干净项链最近收集整理的关于Debian9.4更换源的正确姿势#备份原有的源配置文件#删除该源配置文件#生成国内的源配置文件#更新源的全部内容,更多相关Debian9.4更换源内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部