关闭

ubuntu更新软件源

375人阅读 评论(0) 收藏 举报
分类:

     身为在中国的ubuntu使用者,当您费劲千辛万苦安装好ubuntu,准备开始体验一下开源操作系统的魅力的时候,您会发现有很多的软件还没有安装或者是更新,这时候千万不要急着去安装或者更新,因为您还没有更新ubuntu的软件源,这样直接安装会非常的慢,慢到让人eggache。如果您先更新了软件源,一定会事半功倍。

     按ctrl+alt+t打开一个新的终端,在里面输入

    sudo gedit /etc/apt/sources.list  

然后将打开的文件中的内容全部都清空,如果您不放心的话,可以先将这个文件备份一下。然后挑选如下的一个或者几个源复制进去就可以了。

搜狐源

    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  

163的源

    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://mirror.lzu.edu.cn/ubuntu/ intrepid main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu/ intrepid-backports main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu/ intrepid-proposed main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu/ intrepid-security main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu/ intrepid-updates main multiverse restricted universe  
    deb http://mirror.lzu.edu.cn/ubuntu-cn/ intrepid main multiverse restricted universe  


#电子科技大学

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


#中国科技大学

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


#北京理工大学

    deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe  
    deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe  
    deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe  
    deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe  
    deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe  
    deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe  

关闭文件,然后输入:

    sudo apt-get update  


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:166776次
    • 积分:3650
    • 等级:
    • 排名:第9315名
    • 原创:205篇
    • 转载:14篇
    • 译文:0篇
    • 评论:25条
    E-Mail