debian更换阿里云源
天空博客
阅读:4080
2019-01-15 16:30:59
评论:2
为什么要换阿里云的源?
因为官方源慢。
为什么要换阿里云?
开心就好,阿里云,网易,等等都可以 看你喜欢。
1. 备份原来的源避免出错,我个人喜欢创建一个目录专门用于备份配置文件。
mkdir /config_bak --- 创建备份目录 cp /etc/apt/sources.list /config_bak --- 拷贝配置文件作为备份
2. 修改配置文件,个人喜欢用VIM来编辑配置文件,当然你也可以用VI
apt-get install vim --- 安装VIM vim /etc/apt/sources.list -- 编辑配置文件,在文件最前面添加以下条目 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
3. 更新配置
apt-get update ---更新软件列表
搞定,尽情使用吧!
本文天空博客原创,转载保留链接网址:https://www.aisky.cc/70.html
声明
1.本站内容采用创作共用版权 CC BY-NC-ND/2.5/CN 许可协议。2.尊重网上道德,遵守中华人民共和国的各项有关法律法规。3.本站管理人员有权保留或删除其管辖留言中的任意内容。
速度很快