zoukankan      html  css  js  c++  java
  • Ubuntu 更改默认apt-get源

    原文转自:http://zhoushijun.iteye.com/blog/1942475

    方法:

    1、修改源地址:
    cp /etc/apt/sources.list /etc/apt/sources.list.bak
    vim /etc/apt/sources.list

    加入如下内容(中科大的):

    deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted
    deb http://mirrors.ustc.edu.cn/ubuntu/ precise universe
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise universe
    deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates universe
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates universe
    deb http://mirrors.ustc.edu.cn/ubuntu/ precise multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates multiverse
    deb http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse


    比较快的源:

    搜狐源:
    deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
    deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
    deb http://mirrors.sohu.com/ubuntu/ precise universe
    deb-src http://mirrors.sohu.com/ubuntu/ precise universe
    deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
    deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
    deb http://mirrors.sohu.com/ubuntu/ precise multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
    deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
    deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
    deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse

    网易源:

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

    更新看看速度:

    sudo apt-get update
    sudo apt-get upgrade

  • 相关阅读:
    JS弹出一个等待对话框,js iframe等待 推荐一下
    netsuite 支持的字段计算函数 oracle 函数
    js 动态创建iframe 后submit提交
    netsuite凭证批量打印中涉及的html分页打印问题,页面的部分打印
    1099MISC是什么
    debit,credit,日记帐就是每天都要登的帐
    netsuite SyncQtyRate
    netsuite与首信易支付(v4.3)接口
    呼叫中心(Call Center)介绍及产品功能列表
    Js MD5加密问题
  • 原文地址:https://www.cnblogs.com/tangxin-blog/p/5367517.html
Copyright © 2011-2022 走看看