修改Ubuntu软件源为阿里云

1、复制原文件备份

sudo cp /etc/apt/source.list /etc/apt/source.list.bak

2、编辑源列表文件

sudo vim /etc/apt/source.list

3、将原来的列表删除,添加如下内容

deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse

4、运行sudo apt-get update

5、运行sudo apt-get upgrade

    原文作者:liuhe_android
    原文地址: https://www.jianshu.com/p/2c9639c327a0
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞