cd /etc/apt/
ls -l
看到sources.list
mv sources.list sources.list.bak
cat << EOF > sources.list
> # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
> # newer versions of the distribution.
>
> deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
> deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted
>
> ## Major bug fix updates produced after the final release of the
> ## distribution.
> deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
> deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
>
> ## Uncomment the following two lines to add software from the 'universe'
> ## repository.
> ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
> ## team. Also, please note that software in universe WILL NOT receive any
> ## review or updates from the Ubuntu security team.
> deb http://mirrors.aliyun.com/ubuntu/ xenial universe
> deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
> deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
> deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
>
> ## N.B. software from this repository may not have been tested as
> ## extensively as that contained in the main release, although it includes
> ## newer versions of some applications which may provide useful features.
> ## Also, please note that software in backports WILL NOT receive any review
> ## or updates from the Ubuntu security team.
> # deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted
> # deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted
>
> deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
> deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
> deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
> deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe
> # deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
> # deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
> EOF
/etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
search lan
nameserver 8.8.8.8
nameserver 8.8.4.4