个人觉得ali的源是国内最好用的源了
# ali源
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
# 查看版本号
sudo lsb_release -a
# 输出
# No LSB modules are available.
# Distributor ID: Ubuntu
# Description: Ubuntu 16.10
# Release: 16.10
# Codename: yakkety
# 将上面的源中trusty修改yakkety(你的版本)
# 替换源
sudo vim /etc/apt/sources.list
将ali的源贴进去,版本号要对应,不然会造成依赖问题,如果官方的源是美国的,可以补充ubuntu国内的源,官方国内的源、163源、其他源