修改Ubuntu源为阿里镜像

Ubuntu全版本(14 16 18)更换阿里源 传送门

备份之前的源文件

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup  # 备份源列表

添加阿里源

vi /etc/apt/sources.list

 输入:,$d删除之前的源

 1 #添加以下内容
 2 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
 3 deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
 4 
 5 deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
 6 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
 7 
 8 deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
 9 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
10 
11 deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
12 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
13 
14 deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
15 deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

 

更新软件列表

sudo apt-get update && apt-get upgrade 
posted @ 2020-01-02 14:30  AlexANSO  阅读(538)  评论(0编辑  收藏  举报