如何在ubuntu18.4版本中修改apt-get为阿里云源?

2019-01-29

修改apt-get为阿里云源
第一步先执行备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
 
echo ''>/etc/apt/sources.list
 
vim /etc/apt/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
 
执行更新
apt-get update
 

热门文章

评论已有( 0 )条评论

昵称*
快评短语
写的太好了,正好为我解惑 一般般,不详细 无感觉,然并卵 没啥事,就来灌一下水 还有其它的吗?