当前位置:首页 > 资讯教程 > 技术栏目 > 如何在ubuntu18.4版本中修改apt-get为阿里云源?

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

来源:网络整理 2019-01-29 0人评论
修改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 )条评论
昵称 *
邮箱

*验证码: 验证码

快评短语
写的太好了,正好为我解惑 小编努力,可以写的更好! 无感觉,然并卵 一般般,不详细 还不错,希望能更好 没啥事,就来灌一下水 失望,还以为找到自己需要的 还有其它的吗?
推荐下载
热门下载
  • 周排行
  • 月排行