Powered by md-Blog  文 - 篇  访客 -

Ubuntu切换阿里源


  分类:Ubuntu  / 
更新:2021-04-11 16:49:02  /  创建:2021-04-11 16:49:02
不要删除

1、备份原始源文件

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

2、编辑器打开源列表文件

sudo gedit /etc/apt/sources.list

3、内容全部替换

#  阿里镜像源

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-proposed main restricted universe multiverse
deb-src 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-backports main restricted universe multiverse

4、更新升级

sudo apt-get update && sudo apt-get upgrade

不要删除

小站不易,感谢支持!