Ubuntu12.04的源在 /etc/apt/sources.list  中,

进入 /etc/apt/

先进行备份

然后用根用户权限打开sources.list。

sudo gedit /etc/apt/sources.list

将下面代码贴进去

#台湾源   





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

最后apt-get update即可

Ubuntu源更新的更多相关文章

  1. ubuntu 源更新(sources.list)

    首先备份源列表: sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup 而后用gedit或其他编辑器打开(也可以复制到Windows下打 ...

  2. 一个Ubuntu源更新错误及解决办法

    InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?) 尝试进 ...

  3. docker中ubuntu源更新慢加速 换为国内源 Debian10源

    本来以为是Ubuntu打包的镜像,换了阿里源老是报错100公钥不可用,结果发现是Debian的操作系统,换位Debian的操作系统打包的,换位Debian的源即可 #源如果使用错误也会报错,没有Deb ...

  4. ubuntu 11.04 源 更新不了,全显示ign、404

    原文地址:http://blog.csdn.net/enjio/article/details/11603373   ubuntu 11.04 源 更新不了 分类: 开发相关2013-09-12 14 ...

  5. Ubuntu 14.04 apt源更新

    # 14.04 下进 my /etc/apt/sources.list /etc/apt/sources.bak vi /etc/apt/sources.list 从以下源中选择一个 源列表 Trus ...

  6. ubuntu系统更新源

    问题引入:在ubuntu上安装libmysqlclient-dev一直提示Connecting to mirrirs.cqu.edu.cn

  7. 加速软件源更新和安装 ubuntu 软件中心

    Linux mint 12 修改加速软件源更新和安装 ubuntu 软件中心 由于 linux mint 12 是基于 ubuntu 的,可以使用 ubuntu 的源(Ubuntu 11.10 代号 ...

  8. [转] 停止支持的老版本ubuntu源列表-old-releases

    我使用的是ubuntu 9.10,在网上找了大半个月之后,今天终于找到了可用的源地址.感谢这位cgjcgs仁兄. 点击阅读原文 ubuntu的普通版本支持的时间都有限,过了支持的时间,更新源都会被停用 ...

  9. 中国区常用ubuntu源

    1.首先备份Ubuntu 源列表sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表) 2.修改更新源sudo g ...

随机推荐

  1. PyNest——part 4: topologically structured networks

    part 4: topologically structured networks incorporating structure in networks of point neurons 如果我们使 ...

  2. mysql 关于join的总结

    本文地址:http://www.cnblogs.com/qiaoyihang/p/6401280.html mysql不支持Full join,不过可以通过UNION 关键字来合并 LEFT JOIN ...

  3. 小知识:pyhon的作用域

    http://www.cnblogs.com/wupeiqi/p/5649402.html    五句话搞定JavaScript作用域 从JavaScript  == pyhon 作用域几乎一致 __ ...

  4. 关于 ActionBar、ToolBar、StatusBar 的开发经验整理

    一.ActionBar.ToolBar概述 1.1 ActionBar 1.2 ToolBar 1.3 StatusBar StatusBar 是一个半透明阴影,View 可以伸展到其后面. 1.4 ...

  5. python之路——MySQL数据库

    1 MySQL相关概念介绍 MySQL为关系型数据库(Relational Database Management System), 这种所谓的"关系型"可以理解为"表格 ...

  6. Linux——网络配置及命令

    traceroute命令(unix)/tracert命令(windows) tracert命令的格式为:tracert [-d] [-h maximum_hops] [-j host-list] [- ...

  7. iOS7中彻底隐藏status bar

    用Xcode5开发新游戏,发现在iOS7中按照以前的方法隐藏status bar失效了. 想要彻底隐藏status bar,需要在info.plist中添加新行“View controller-bas ...

  8. tomcat绿色版——运行一闪而过的解决方法

    首先配置好jdk的环境变量 %JAVA_HOME%\bin;注意:一定是英文状态下的分号结尾 %TOMCAT%\bin;注意:一定是英文状态下的分号结尾 service.bat install ser ...

  9. idea调节字体大小

    这是调节前的 这是调节后的 步骤

  10. make install报错

    今天,在运行公司内核的机器上,编译标准内核,结果提示: 问题原因: 原来安装新内核的时候,会与原内核比较,如果缺少了某些模块,就会提示”ERROR: modinfo: could not find m ...