美文网首页
【Ubuntu】修改Ubuntu的apt-get源为国内镜像源的

【Ubuntu】修改Ubuntu的apt-get源为国内镜像源的

作者: 皓月之韵 | 来源:发表于2019-12-20 15:28 被阅读0次
  1. 原文件备份
    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
  2. 编辑源列表文件
    sudo vim /etc/apt/sources.list
    3.将原来的列表删除,添加如下内容(阿里源)

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

4.运行sudo apt-get update

相关文章

网友评论

      本文标题:【Ubuntu】修改Ubuntu的apt-get源为国内镜像源的

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