ubuntu18.04 修改阿里源

1.  备份源文件

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2. 编辑源文件列表

sudo vim /etc/apt/sources.list

3. 将sources.list中的内容替换为如下内容:

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
 

4.更新软件列表

sudo apt-get update

 

5.更新软件包

sudo apt-get upgrade

你可能感兴趣的:(ubuntu18.04 修改阿里源)