Debian如何更换阿里云源
温馨提示:这篇文章已超过764天没有更新,请注意相关的内容是否还可用!
备份原来的源避免出错。
# 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 ---更新软件列表
若文章图片、下载链接等信息出错,请联系反馈,博主将第一时间更新!如果喜欢本站,请打赏支持本站,谢谢!
文章版权声明:除非注明,否则均为阿豪运维笔记原创文章,转载或复制请以超链接形式并注明出处。