!
也想出现在这里? 联系我们
广告位
当前位置:首页>教程分享>服务器教程>修改Debian系统的APT软件源:轻松上手

修改Debian系统的APT软件源:轻松上手

Linux拥有众多的发行版,每个发行版都有提供镜像,但是,有些镜像的下载速度参差不齐,偶尔会有更新失败的情况。

下面以修改 Debian 软件源为 中科大为例进行说明:

镜像地址:https://mirrors.ustc.edu.cn/

1、备份原配置文件:

# cp /etc/apt/sources.list /etc/apt/sources.list.backup

2、修改软件源配置文件

debian 7.x (wheezy)

编辑/etc/apt/sources.list文件, 将内容修改为:

deb http://mirrors.ustc.edu.cn/debian wheezy main non-free contrib

deb http://mirrors.ustc.edu.cn/debian wheezy-proposed-updates main non-free contrib

deb-src http://mirrors.ustc.edu.cn/debian wheezy main non-free contrib

deb-src http://mirrors.ustc.edu.cn/debian wheezy-proposed-updates main non-free contrib

debian 8.x (jessie) 编辑/etc/apt/sources.list文件, 将内容修改为:

deb http://mirrors.ustc.edu.cn/debian jessie main non-free contrib

deb http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main non-free contrib

deb-src http://mirrors.ustc.edu.cn/debian jessie main non-free contrib

deb-src http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main non-free contrib

3、更新

# apt-get update

给TA打赏
共{{data.count}}人
人已打赏
服务器教程

修改Ubuntu系统的APT软件源:简单易学

2021-4-17 17:37:33

服务器教程

Linux服务器中设置iptables防火墙规则?

2021-4-17 17:37:35

声明 本站上的部份代码及教程来源于互联网,仅供网友学习交流,若您喜欢本文可附上原文链接随意转载。无意侵害您的权益,请发送邮件至 [email protected] 或点击右侧 私信:吉吉国王 反馈,我们将尽快处理。
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索
OneEase