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. 用Android NDK编译FFmpeg

    附(2018-01-06):     有一个将x264及lame等库集成进去了且基于android的ffmpeg的编译方法,地址参见:       https://github.com/writing ...

  2. CG group

    Linux CGroup全称Linux Control Group, 是Linux内核的一个功能,用来限制,控制与分离一个进程组群的资源(如CPU.内存.磁盘输入输出等).这个项目最早是由Google ...

  3. python读取/写入文件

    <Python编程:从入门到实践>读书笔记 1.读取文件并且对文件内容进行打印有三种方式: with open('test.txt') as fo: for lins in fo: pri ...

  4. xpath中遇到[<Element a at 0x39a9a80>](转)

    Element是什么 回归正题,大家晕头转脑的看完繁杂的语法之后,已经迫不及待写点什么东西了,然后部分同学可能遇到了这个 <Element a at 0x39a9a80>或者类似 Elem ...

  5. vue-cli中config目录下的index.js文件详解

    vue-cli脚手架工具config目录下的index.js解析 转载自:http://www.cnblogs.com/ye-hcj/p/7077796.html // see http://vuej ...

  6. HDU - 6395 Sequence (分块+快速矩阵幂)

    给定递推式: 求Fn. 分析:给出的公式可以用快速矩阵幂运算得到,但 P/n 整除对于不同的i,值是不同的. 可以根据P将3-n分成若干块,每块中P整除n的值是相同的.分块的时候要注意判断. 将每块的 ...

  7. Nginx 自定义404、500错误页面跳转

    自定义Nginx错误界面跳转 1.开启Nginx.conf配置文件下的自定义接口参数. http { fastcgi_intercept_errors on; } 2.在Server区域添加自定义的错 ...

  8. article标准用法

    article代表一个在文档.页面或者网站中自成一体的内容 其目的是为了让开或重用 譬如论坛的帖子.博客的文章.一片用户的评论.一个互动的widget小工具 article 会有一个标题(通常在hea ...

  9. React Native常用组件之ScrollView组件

    一.前言 从iOS开发的经验来看,scrollView无疑是移动开发中很重要的一个组件,比如后面会学到的ListView就是继承自它.那么,在开发中比如:焦点图.引导页等地方都有其的影子,那接下来我们 ...

  10. 如何实现一个简单的RPC

    在如何给老婆解释什么是RPC中,我们讨论了RPC的实现思路. 那么这一次,就让我们通过代码来实现一个简单的RPC吧! RPC的实现原理 正如上一讲所说,RPC主要是为了解决的两个问题: 解决分布式系统 ...