/www/wwwroot/blog.gumengya.com/usr/plugins/AMP/templates/MIPpage.php on line 31
">

Ubuntu apt 更换阿里源

2022-08-24T15:01:00

查看ubuntu的Codename

lsb_release -a

备份官方源

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

修改为阿里源

vim /etc/apt/sources.list

设置为以下内容

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

执行更新

apt-get update
当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »