• Ubuntu 更换软件源/镜像源


    备份原来的源 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    编辑源 sudo gedit /etc/apt/sources.list 底下附上了一些常用源
    更新源 sudo apt-get update
    修复受损的旧软件包 sudo apt-get -f install
    更新软件 sudo apt-get upgrade


    国内源

    阿里云

    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 
    

    清华源

    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    

    西电源 (仅限校内使用,校内下载不计流量)

    deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial main restricted universe multiverse
    #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial main restricted universe multiverse
    
    deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-security main restricted universe multiverse
    #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-security main restricted universe multiverse
    
    deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-updates main restricted universe multiverse
    #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-updates main restricted universe multiverse
    
    #deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-backports main restricted universe multiverse
    #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-backports main restricted universe multiverse
    
    #deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-proposed main restricted universe multiverse
    #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-proposed main restricted universe multiverse
    

    网易源

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

    东北大学源

    deb-src http://mirror.neu.edu.cn/ubuntu/ xenial main restricted #Added by software-properties
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial main restricted
    
    deb-src http://mirror.neu.edu.cn/ubuntu/ xenial restricted multiverse universe #Added by software-properties
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted
    
    deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial universe
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates universe
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial multiverse
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates multiverse
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    
    deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
    
    deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted
    
    deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial-security universe
    
    deb http://mirror.neu.edu.cn/ubuntu/ xenial-security multiverse
    
  • 相关阅读:
    python学习(四)流程控制语句
    python学习(三)运算符
    python学习(二)数据类型转换
    python学习(一)基本数据类型
    mysql学习-mysql分页查询
    装饰器
    迭代器与生成器
    深入解析类对象与类实例的创建过程
    深入理解Python中的元类---metaclass
    flask源码解析之DispatcherMiddleware
  • 原文地址:https://www.cnblogs.com/bitor/p/10121468.html
Copyright © 2020-2023  润新知