Ubuntu更新速度巨慢的话有可能是源的问题,国内的机器可以更换为阿里云源或163源。
操作之前先备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
编辑sources.list文件
vim /etc/apt/sources.list
清空里面内容后贴入以下地址
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
再apt-get update更新一下
参考文章https://my.oschina.net/liuyuantao/blog/798960
我的微信公众号
我的微信公众号扫一扫