原创 Ubuntu 更新源地址列表及更改方法

2013-1-1 18:46 915 11 11 分类: MCU/ 嵌入式

1、首先备份Ubuntu 11.04(其他的也可以试试 10.10的也好用)源列表

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表,有备无患嘛)

 

    2、修改更新源
    sudo gedit /etc/apt/sources.list (打开Ubuntu 11.04源列表文件)

 

 

    3、将下面的代码粘贴进去(“#”开头的那一行为注释,可以直接复制进文件中)

 

 

 

 #台湾源   

deb http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse 
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse 
deb http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted 
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted 
deb http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted 
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted

#网易 Ubuntu 11.04 源(速度很快)

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

 #骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin 

deb http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse 
deb-src http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse 
deb http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted 
deb-src http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted 
deb http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted 
deb http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted 
deb-src http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted 
deb http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted 
deb-src http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted 
deb-src http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted

 

#大家可以自己根据自己的版本设置一下,不一定局限于ubuntu 11.04,下面列出一些校内更新源。

 

#电子科技大学

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

#中国科技大学

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

#北京理工大学

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

#兰州大学

deb ftp://mirror.lzu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe

#上海交通大学

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

文章评论0条评论)

登录后参与讨论
我要评论
0
11
关闭 站长推荐上一条 /2 下一条