zoukankan      html  css  js  c++  java
  • Ubuntu16.04更换下载源

    更新源的方法

    进入/etc/apt/

    cd /etc/apt
    

    对 sources.list文件进行备份:

    sudo cp sources.list sources.list.bak
    

    打开源列表文件

    sudo gedit sources.list 
    

    使用下文的源中的内容替换原来文件中的内容,替换完成后执行:

    sudo apt-get update
    

    常使用的源

    清华源

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

    阿里源

    deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
    deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
    deb http://mirrors.aliyun.com/ubuntu/ xenial universe
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
    deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/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://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
    

    中科大源

    deb http://debian.ustc.edu.cn/ubuntu/ hardy main multiverse restricted universe
    deb http://debian.ustc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe
    deb http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe
    deb http://debian.ustc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe
    deb http://debian.ustc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe
    deb-src http://debian.ustc.edu.cn/ubuntu/ hardy main multiverse restricted universe
    deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe
    deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe
    deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe
    deb-src http://debian.ustc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe
    
  • 相关阅读:
    浅析VO、DTO、DO、PO的概念、区别和用处
    serialVersionUID的作用
    Eclipse Debug提示source not found解决方案
    eclipse的块选择模式
    Java工程Properties配置文件注释中文,会自动转换为其他编码方式问题解决 中文乱码
    spring boot1.5以上版本@ConfigurationProperties取消location注解后的替代方案 cannot resolve method location
    c++11多线程
    多媒体指令(AVX加速数组求和)
    oracle数据库occi接口写入中文乱码解决方法
    c++得到窗口句柄
  • 原文地址:https://www.cnblogs.com/chay/p/10292207.html
Copyright © 2011-2022 走看看