• ubuntu 设置与添加中国源


    环境:ubuntu 12.04 ENGLISH

    先备份  mv /etc/apt/sources.list~  sources.list~.bak

    vi sources.list~插入:

    以下转载

    请把其中的{Version}替代为以下列表中对应项:

    1. Ubuntu 12.10(测试版系统,将于10月推出) - quantal
    2. Ubuntu 12.04 - precise
    3. Ubuntu 11.10 - oneiric 
    4. Ubuntu 11.04 - natty 
    5. Ubuntu 10.10 - maverick 
    6. Ubuntu 10.04 - lucid
    复制代码
    如果不需要获取软件源代码,可以删除以“deb-src”开头的源,以加快速度。


    网易163更新服务器(广东广州电信/联通千兆双线接入):

    1. deb http://mirrors.163.com/ubuntu/ {Version} main restricted universe multiverse
    2. deb http://mirrors.163.com/ubuntu/ {Version}-security main restricted universe multiverse
    3. deb http://mirrors.163.com/ubuntu/ {Version}-updates main restricted universe multiverse
    4. deb http://mirrors.163.com/ubuntu/ {Version}-proposed main restricted universe multiverse
    5. deb http://mirrors.163.com/ubuntu/ {Version}-backports main restricted universe multiverse
    6. deb-src http://mirrors.163.com/ubuntu/ {Version} main restricted universe multiverse
    7. deb-src http://mirrors.163.com/ubuntu/ {Version}-security main restricted universe multiverse
    8. deb-src http://mirrors.163.com/ubuntu/ {Version}-updates main restricted universe multiverse
    9. deb-src http://mirrors.163.com/ubuntu/ {Version}-proposed main restricted universe multiverse
    10. deb-src http://mirrors.163.com/ubuntu/ {Version}-backports main restricted universe multiverse
    复制代码

    搜狐更新服务器(山东联通千兆接入,官方中国大陆地区镜像跳转至此)推荐使用!

    1. deb http://mirrors.sohu.com/ubuntu/ {Version} main restricted universe multiverse
    2. deb http://mirrors.sohu.com/ubuntu/ {Version}-security main restricted universe multiverse
    3. deb http://mirrors.sohu.com/ubuntu/ {Version}-updates main restricted universe multiverse
    4. deb http://mirrors.sohu.com/ubuntu/ {Version}-proposed main restricted universe multiverse
    5. deb http://mirrors.sohu.com/ubuntu/ {Version}-backports main restricted universe multiverse
    6. deb-src http://mirrors.sohu.com/ubuntu/ {Version} main restricted universe multiverse
    7. deb-src http://mirrors.sohu.com/ubuntu/ {Version}-security main restricted universe multiverse
    8. deb-src http://mirrors.sohu.com/ubuntu/ {Version}-updates main restricted universe multiverse
    9. deb-src http://mirrors.sohu.com/ubuntu/ {Version}-proposed main restricted universe multiverse
    10. deb-src http://mirrors.sohu.com/ubuntu/ {Version}-backports main restricted universe multiverse
     
    复制代码

    Ubuntu官方提供的其他软件(第三方闭源软件等)(推荐添加):

    1. deb http://archive.canonical.com/ubuntu/ {Version} partner
    2. deb http://extras.ubuntu.com/ubuntu/ {Version} main

    IPv6-Only 地址

    1. deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version} main multiverse restricted universe
    2. deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-backports main multiverse restricted universe
    3. deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-proposed main multiverse restricted universe
    4. deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-security main multiverse restricted universe
    5. deb http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-updates main multiverse restricted universe
    6. deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version} main multiverse restricted universe
    7. deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-backports main multiverse restricted universe
    8. deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-proposed main multiverse restricted universe
    9. deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-security main multiverse restricted universe
    10. deb-src http://mirrors6.ustc.edu.cn/ubuntu/ {Version}-updates main multiverse restricted universe
     
    最后: sudo apt-get update
     
    基本OK!
     
     
    -------------------------明明以前用上面的源是OK,的2013.7.15 今天出现404 无法跟新源, 原因未知。。。下面的源解决问题:
    deb http://mirrors.163.com/ubuntu/ precise main restricted
     deb-src http://mirrors.163.com/ubuntu/ precise main restricted
     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
     deb http://mirrors.163.com/ubuntu/ precise-security main restricted
     deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
     deb http://mirrors.163.com/ubuntu/ precise-security universe
     deb-src http://mirrors.163.com/ubuntu/ precise-security universe
     deb http://mirrors.163.com/ubuntu/ precise-security multiverse
     deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
     deb http://extras.ubuntu.com/ubuntu precise main
     deb-src http://extras.ubuntu.com/ubuntu precise main

    -
    -
    -

    deb http://mirrors.sohu.com/ubuntu/ precise main restricted
     deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted
     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.sohu.com/ubuntu/ precise-security main restricted
     deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted
     deb http://mirrors.sohu.com/ubuntu/ precise-security universe
     deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe
     deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse
     deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse
     deb http://extras.ubuntu.com/ubuntu precise main
     deb-src http://extras.ubuntu.com/ubuntu precise main
     
     
  • 相关阅读:
    ##JDBC
    《人月神话》阅读笔记(三)
    《人月神话》阅读笔记(二)
    《人月神话》阅读笔记(一)
    记账小软件开发(网页版)(四)
    记账小软件开发(网页版)(三)
    记账小软件开发(网页版)(二)
    记账小软件开发(网页版)(一)
    课程信息管理系统
    Java课程作业之动手动脑(六)
  • 原文地址:https://www.cnblogs.com/qunshu/p/3107342.html
Copyright © 2020-2023  润新知