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. Angular学习笔记—Rxjs、Promise的区别

    Promises: 异步操作完成或失败时处理单个事件 不可取消 代码可读性强,有try/catch Observables: 可持续监听和响应多个事件 可取消订阅 支持map, filter, red ...

  2. Library Cache优化与SQL游标

    Library Cache主要用于存放SQL游标,而SQL游标最大化共享是Library Cache优化的重要途径,可以使SQL运行开销最低.性能最优. 1 SQL语句与父游标及子游标 在PL/SQL ...

  3. linux进程内存到底怎么看 剖析top命令显示的VIRT RES SHR值

    引 言: top命令作为Linux下最常用的性能分析工具之一,可以监控.收集进程的CPU.IO.内存使用情况.比如我们可以通过top命令获得一个进程使用了多少虚拟内存(VIRT).物理内存(RES). ...

  4. vue自定义全局和局部指令

    一.介绍 1.除了核心功能默认内置的指令 (v-model 和 v-show),Vue 也允许注册自定义指令. 2.自定义指令的分类       1.全局指令 2.局部指令 3.自定义全局指令格式 V ...

  5. jQuery文档节点处理,克隆,each循环,动画效果,插件

    文档节点处理 //创建一个标签对象 $("<p>") //内部插入 $("").append(content|fn) ----->$(&quo ...

  6. java 怎么让打印信息换行?

    System.out.println("账号=="+name+"\n"); System.out.println("密码=="+pwd+&q ...

  7. ajax与一般处理程序 HTTP协议交互

    1,一般处理程序中 context.Response.ContentType = "text/plain", 则  ajax参数中 也是 text 类型. 2,一般处理程序中 转化 ...

  8. HDU4628

    /*状态转移f[i]=min(f[i],f[j]+f[i^j]); 就是j状态+i^j状态=i状态,f[i]记录的是从i删除1要的最小步数*/ #include<string.h> #in ...

  9. Windows Server 2008 R2 FTP无法从外部访问的解决方法

    在Windows Server 2008 R2中配置好FTP服务器后,可以在本机访问,但是无法从另一台电脑访问.原因就是在于防火墙没有配置好. 1.首先检查服务器管理器中的入站规则,确保已启用FTP服 ...

  10. 在Linux系统下使用Github的基本教程

    1. 安装git: sudo apt-get install git-core git-gui git-doc 2.到https://github.com/ 注册一个帐号,一会儿客户端登录的时候要使用 ...