• 2008-09-24

    修改源并更新你的(k/x/ed)ubuntu debian lenny 最快的源国内教育网 - [系统安装]

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://linux.blogbus.com/logs/29557033.html

    打开终端方法:

    按下ALT+F2 -> gnome-terminal -> 运行 #(ed)ubuntu
    按下ALT+F2 -> konsole -> 运行 #Kubuntu
    按下ALT+F2 -> xfce4-terminal -> 运行 #xubuntu

    在终端执行命令

    备份当前的源列表,以便日后需要时恢复:

    sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

    编辑源列表

    Ubuntu 和 Edubuntu 中执行:
    gksu gedit /etc/apt/sources.list

    Kubuntu 中执行:
    kdesu kate /etc/apt/sources.list

    Xubuntu 中执行:
    gksu mousepad /etc/apt/sources.list

    适用于所有版本:
    sudo vim /etc/apt/sources.list

    编辑后执行 apt-get update    apt-get upgrade    apt-get dist-upgrade


    从以下各服务器列表内容中选择一段替换文件中的所有内容,一般来说加入一至两组即可,加多了影响更新速度。为防止非官方源中软件包不全的问题,请在sources.list文件中尾部添加一组官方源。
    # deb file:/cdrom/ etch main contrib

    #deb http://mirrors.cn99.com/debian/ lenny main non-free contrib
    #deb-src http://mirrors.cn99.com/debian/ lenny main non-free contrib
     

    #deb http://kde4.debian.net/ lenny main
    deb http://mirrors.163.com/debian/ lenny main non-free contrib
    deb-src http://mirrors.163.com/debian/ lenny main non-free contrib

    deb http://mirror.dlut.edu.cn/debian/ lenny main non-free contrib
    deb-src http://mirror.dlut.edu.cn/debian/ lenny main non-free contrib         
    deb http://debian.ustc.edu.cn/debian/ lenny main non-free contrib
    deb-src http://debian.ustc.edu.cn/debian/ lenny main non-free contrib

    deb http://ftp.tw.debian.org/debian lenny main 

    deb-src http://ftp.tw.debian.org/debian lenny main

    以上是目前debian lenny 速度稳定的源

     


    #deb http://mirror.dlut.edu.cn/debian-non-US stable/non-US main contrib non-free
    #deb-src http://mirror.dlut.edu.cn/debian-non-US stable/non-US main contrib non-free

    deb http://www.zentek-international.com/mirrors/debian/ lenny main non-free contrib
    deb-src http://www.zentek-international.com/mirrors/debian/ lenny main non-free contrib


    #deb http://ftp.sunet.se/pub/os/Linux/dis...an-multimedia/ lenny main

    #deb http://ubuntu.cn99.com/ubuntu-cn/ hardy main restricted universe multiverse
    deb http://www.debian-multimedia.org lenny main

    #deb http://ftp.tw.debian.org/debian-multimedia/ lenny main
    #deb-src http://ftp.tw.debian.org/debian-multimedia/ lenny main
    #deb http://ftp.tw.debian.org/debian/ lenny contrib main non-free
    #deb-src http://ftp.tw.debian.org/debian/ lenny contrib main nin-free
    #deb http://ftp.tw.debian.org/debian-volatile/ lenny volatile
    #deb-src http://ftp.tw.debian.org/debian-voatile/ lenny volatile

    #deb http://ftp.hk.debian.org/debian/ lenny contrib main non-free
    #deb-src http://ftp.hk.debian.org/debian/ lenny contrib main non-free

    deb http://http.us.debian.org/debian/ lenny main contrib non-free
    deb-src http://http.us.debian.org/debian/ lenny main contrib non-free #Added by software-properties
    #deb http://http.us.debian.org/debian/ lenny-proposed-updates contrib non-free main
    #deb-src http://http.us.debian.org/debian/ lenny-proposed-updates contrib non-free main
    #deb http://http.us.debian.org/debian/ lenny/updates contrib non-free main
    #deb-src http://http.us.debian.org/debian/ lenny/updates contrib non-free main

    #deb http://www.anheng.com.cn/debian lenny main non-free contrib
    #deb-src http://www.anheng.com.cn/debian lenny main non-free contrib

    #deb http://debian.osuosl.org/debian/ lenny main non-free contrib

     Debian GNU/Linux 4.0 Etch  源

    #
    # deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 DVD Binary-1 20080803-20:48]/ etch contrib main

    #deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 DVD Binary-1 20080803-20:48]/ etch contrib main
    deb http://debian.cn99.com/debian/ testing main non-free contrib
    deb-src http://debian.cn99.com/debian/ testing main non-free contrib

    #deb http://debian.cn99.com/debian/ etch main
    #deb-src http://debian.cn99.com/debian/ etch main
    deb http://update.inlsd.org/debian-multimedia testing main
    deb-src http://update.inlsd.org/debian-multimedia testing main
    deb http://security.debian.org/ etch/updates main contrib
    deb-src http://security.debian.org/ etch/updates main contrib

    Hardy(8.04) 版本



    Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):

    deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse


    Ubuntu.cn99.com更新服务器(江苏省常州市电信,推荐电信用户使用):

    deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
    deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
    deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
    deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
    deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse


    Mirrors.shlug.org更新服务器(电信服务器,Ubuntu China Official Mirror, maintained by Shanghai Linux User Group):

    deb http://cn.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
    deb http://cn.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
    deb http://cn.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
    deb http://cn.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
    deb http://cn.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
    deb-src http://cn.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
    deb-src http://cn.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
    deb-src http://cn.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
    deb-src http://cn.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
    deb-src http://cn.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse


    Mirror.lupaworld.com更新服务器(浙江省杭州市双线服务器):

    deb http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse
    deb http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse
    deb http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse
    deb http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multiverse
    deb http://mirror.lupaworld.com/ubuntu hardy-proposed main restricted universe multiverse
    deb-src http://mirror.lupaworld.com/ubuntu hardy main restricted universe multiverse
    deb-src http://mirror.lupaworld.com/ubuntu hardy-security main restricted universe multiverse
    deb-src http://mirror.lupaworld.com/ubuntu hardy-updates main restricted universe multiverse
    deb-src http://mirror.lupaworld.com/ubuntu hardy-backports main restricted universe multiverse
    deb-src http://mirror.lupaworld.com/ubuntu hardy-proposed main restricted universe multiverse

     

    厦门大学更新服务器(教育网服务器):

    deb ftp://ubuntu.realss.cn/ubuntu/ hardy main restricted universe multiverse
    deb ftp://ubuntu.realss.cn/ubuntu/ hardy-backports restricted universe multiverse
    deb ftp://ubuntu.realss.cn/ubuntu/ hardy-proposed main restricted universe multiverse
    deb ftp://ubuntu.realss.cn/ubuntu/ hardy-security main restricted universe multiverse
    deb ftp://ubuntu.realss.cn/ubuntu/ hardy-updates main restricted universe multiverse
    deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy main restricted universe multiverse
    deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-backports main restricted universe multiverse
    deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-proposed main restricted universe multiverse
    deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-security main restricted universe multiverse
    deb-src ftp://ubuntu.realss.cn/ubuntu/ hardy-updates main restricted universe multiverse


    成都市 电子科技大学更新服务器(教育网,推荐校园网和网通用户使用):

    deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy main multiverse restricted universe
    deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe
    deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe
    deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe
    deb http://ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy main multiverse restricted universe
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy-security main multiverse restricted universe
    deb-src http://ubuntu.uestc.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe

    == 如果无法解析uestc.edu.cn域名,请使用以下地址 ==

    deb http://ubuntu.dormforce.net/ubuntu/ hardy main multiverse restricted universe
    deb http://ubuntu.dormforce.net/ubuntu/ hardy-backports main multiverse restricted universe
    deb http://ubuntu.dormforce.net/ubuntu/ hardy-proposed main multiverse restricted universe
    deb http://ubuntu.dormforce.net/ubuntu/ hardy-security main multiverse restricted universe
    deb http://ubuntu.dormforce.net/ubuntu/ hardy-updates main multiverse restricted universe
    deb-src http://ubuntu.dormforce.net/ubuntu/ hardy main multiverse restricted universe
    deb-src http://ubuntu.dormforce.net/ubuntu/ hardy-backports main multiverse restricted universe
    deb-src http://ubuntu.dormforce.net/ubuntu/ hardy-proposed main multiverse restricted universe
    deb-src http://ubuntu.dormforce.net/ubuntu/ hardy-security main multiverse restricted universe
    deb-src http://ubuntu.dormforce.net/ubuntu/ hardy-updates main multiverse restricted universe


    上海市上海交通大学更新服务器(教育网,推荐校园网和网通用户使用):

    deb http://ftp.sjtu.edu.cn/ubuntu/ hardy main multiverse restricted universe
    deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe
    deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe
    deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main multiverse restricted universe
    deb http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe
    deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy main multiverse restricted universe
    deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-backports main multiverse restricted universe
    deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-proposed main multiverse restricted universe
    deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-security main multiverse restricted universe
    deb-src http://ftp.sjtu.edu.cn/ubuntu/ hardy-updates main multiverse restricted universe

    中国科学技术大学更新服务器(教育网,推荐校园网和网通用户使用):

    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


    中国台湾 台湾大学更新服务器(推荐网通用户使用,电信PING平均响应速度41MS。强烈推荐此源,比较完整,较少出现同步问题):

    deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiverse
    deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiverse
    deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiverse
    deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiverse
    deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiverse
    deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiverse
    deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiverse
    deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiverse
    deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main multiverse restricted universe
    deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main restricted universe multiverse


    mirror.rootguide.org更新服务器(上海市 电信):

    deb http://mirror.rootguide.org/ubuntu/ hardy main restricted universe multiverse
    deb-src http://mirror.rootguide.org/ubuntu/ hardy main restricted universe multiverse
    deb http://mirror.rootguide.org/ubuntu/ hardy-updates main restricted universe multiverse
    deb-src http://mirror.rootguide.org/ubuntu/ hardy-updates main restricted universe multiverse
    deb http://mirror.rootguide.org/ubuntu/ hardy-backports main restricted universe multiverse
    deb-src http://mirror.rootguide.org/ubuntu/ hardy-backports main restricted universe multiverse
    deb http://mirror.rootguide.org/ubuntu/ hardy-security main restricted universe multiverse
    deb-src http://mirror.rootguide.org/ubuntu/ hardy-security main restricted universe multiverse
    deb http://mirror.rootguide.org/ubuntu/ hardy-proposed main multiverse restricted universe
    deb-src http://mirror.rootguide.org/ubuntu/ hardy-proposed main restricted universe multiverse


    台湾的官方源速度也相当不错,有时甚至快于内地的:

    deb http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
    deb http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
    deb http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
    deb http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
    deb http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
    deb-src http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
    deb-src http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
    deb-src http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
    deb-src http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
    deb-src http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
    ################################# 
    [Debian GNU/Linux 4.0 r4a _Etch ################################# 
    # deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 DVD Binary-1 20080803-20:48]/ etch contrib main

    #deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 DVD Binary-1 20080803-20:48]/ etch contrib main
    deb http://debian.cn99.com/debian/ testing main non-free contrib
    deb-src http://debian.cn99.com/debian/ testing main non-free contrib

    #deb http://debian.cn99.com/debian/ etch main
    #deb-src http://debian.cn99.com/debian/ etch main
    deb http://update.inlsd.org/debian-multimedia testing main
    deb-src http://update.inlsd.org/debian-multimedia testing main
    deb http://security.debian.org/ etch/updates main non-free contrib
    deb-src http://security.debian.org/ etch/updates main non-free contrib

    收藏到:Del.icio.us