博客文章已转移到新地址,本地址暂时保留,新文章仅在新地址更新。[置顶]

给Ubuntu 14.0.4 server 更新软件源

作者:小宝 2017-06-03 11:06:41

安装好ubuntu后发现下载安装软件速度很慢,我的下载速度理论上有几M每秒的啊,原来是软件源问题。于是将默认的软件源更改为中国搜狐的软件源,测试速度

Download: 33.07 Mbit/s
Testing upload speed...................
Upload: 17.12 Mbit/s

发现很不错,达到了我的带宽。

更新软件源方法如下:

1.备份自带软件源(万一需要恢复的时候用,不能保证一次成功嘛)

sudo cp /etc/apt/source.list /etc/apt/source.list.backup

2. 编辑软件源更改为中国搜狐的源:(删除自带的源后复制下面搜狐的源到source.list保存即可)

sudo vim /etc/apt/source.list

##搜狐的软件源


deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse

3.更新设置

sudo apt-get update

这样可以测试网速了,换了之后速度很快了。可以安装我的lamp了。

©BRISKLAN;备案信息:桂ICP备16004757号-1