ubuntu|ubuntu apt-get 源配置阿里源

一、参考 【ubuntu|ubuntu apt-get 源配置阿里源】https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11W3dydF
二、配置 *系统18.04,其他版本看上面地址找到对应版本修改

sudo mv /etc/apt/sources.list /etc/apt/sources.list_backup #备份
sudo vim /etc/apt/sources.list #编辑
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

sudo apt-get update #更新apt软件源
sudo apt-get dist-upgrade 升级全部软件

    推荐阅读