Debian如何更换阿里云源

温馨提示:文章已超过2152天没有更新,可能存在链接失效,相关教程仅供参考

备份原来的源避免出错。

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

修改配置文件

# vi /etc/apt/sources.list  -- 编辑配置文件,在文件最前面添加以下条目

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

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

更新配置

#  apt-get update  ---更新软件列表

image.png

© 除非注明,否则均为阿豪运维笔记原创文章,转载或复制请以超链接形式并注明出处

取消
微信二维码
微信二维码
支付宝二维码