ubuntu18.04 阿里云源更换apt源更改(国内官方源)教程

ubuntu18.04更换阿里云源(国内官方源)教程


替换系统下/etc/apt/sources.list文件即可

cd /etc/apt/

sudo vim sources.list

####注释   vim编辑器先按ESC进入命令模式,然后依次输入    ggVG    全选内容,按    d    清除选中内容,
####注释   按    i    进入插入模式,粘贴即可,SHIFT+INS为粘贴键。
####注释   然后再按ESC,依次输入 :wq  保存退出

别忘记执行sudo apt-get update

欢迎大家到github一起交流

https://github.com/AndyYoungDev/ubuntu-aliyun-sources

ubuntu18.04 阿里云源更换apt源更改(国内官方源)教程_第1张图片
以下是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-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

此教程已制作成shell脚本,支持一键安装,适用ubuntu14.04 16.04 18.04

详情请看另外一篇

https://blog.csdn.net/weixin_43960643/article/details/100748351

你可能感兴趣的:(TECHS)