美文网首页
Ubuntu 配置阿里云Apt镜像源

Ubuntu 配置阿里云Apt镜像源

作者: 一杉风雨 | 来源:发表于2018-12-13 14:42 被阅读0次

国外的Apt源速度过慢,这里记录下如何将Ubuntu默认Apt源为阿里镜像源。

  1. 创建文件
/etc/apt/sources.list.d/aliyun.list
  1. 修改内容
echo '
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 
' > /etc/apt/sources.list.d/aliyun.list
  1. 更新
apt-get update

相关文章

网友评论

      本文标题:Ubuntu 配置阿里云Apt镜像源

      本文链接:https://www.haomeiwen.com/subject/katbhqtx.html