码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu阿里云镜像源配置

时间:2020-08-20 19:10:38      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:mirror   编辑   apt-get   mirrors   网速   密码   lang   提高   class   

阿里云镜像源配置

这样做的目的是为了提高下载速度

首先切换到root用户(进入root和密码在标题"安装ubuntu18"的序号"11"处有写)

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

然后编辑这个文件,替换为

vim /etc/apt/sources.list
########   Ubuntu18.04 阿里云镜像源   ###############
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb 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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
########   阿里云镜像源 END  ###############

然后输入

apt-get update

爽一波网速吧

Ubuntu阿里云镜像源配置

标签:mirror   编辑   apt-get   mirrors   网速   密码   lang   提高   class   

原文地址:https://www.cnblogs.com/chougoushi/p/13524416.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!