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. disruptor 高并发编程 简介demo

    原文地址:http://www.cnblogs.com/qiaoyihang/p/6479994.html disruptor适用于大规模低延迟的并发场景.可用于读写操作分离.数据缓存,速度匹配(因为 ...

  2. oradebug工具使用(转载)

    在之前的HangAnalyze 中有使用oradebug命令,在这篇文章里,我们主要是重点看一下这个oradebug命令: Oracle HANGANALYZE 功能诊断 DB hanging htt ...

  3. MySQL 数据备份,Pymysql模块(Day47)

    阅读目录 一.IDE工具介绍 二.MySQL数据备份 三.Pymysql模块 一.IDE工具介绍 生产环境还是推荐使用mysql命令行,但为了方便我们测试,可以使用IDE工具 下载链接:https:/ ...

  4. LeetCode:前K个高频元素【347】

    LeetCode:前K个高频元素[347] 题目描述 给定一个非空的整数数组,返回其中出现频率前 k 高的元素. 示例 1: 输入: nums = [1,1,1,2,2,3], k = 2 输出: [ ...

  5. PHP 留言板练习

    登录页面同session一样 login页面 <form action="loginchuli.php" method="post"> <di ...

  6. HDOJ 1501 Zipper 【简单DP】

    HDOJ 1501 Zipper [简单DP] Problem Description Given three strings, you are to determine whether the th ...

  7. Codeforces Round #395 (Div. 2) C. Timofey and a tree

    地址:http://codeforces.com/contest/764/problem/C 题目: C. Timofey and a tree time limit per test 2 secon ...

  8. UEFI引导修复

    一.用bcbboot自动修复 我们建议大家启动64位8PE,用它带的bcdboot来修复. (一)指定esp分区修复 环境为64位8PE,bios/uefi启动进入下都可以 1.启动64位8PE,并用 ...

  9. offset,client,scroll,style,getBoundingClientRect相关笔记

    1.offsetTop 功能:获取元素上外缘与最近的定位父元素内壁的距离,如果没有定位父元素,则是与文档上内壁的距离 使用方法:js document.querySelector(...).offse ...

  10. iOS 或者Android调用vue.js 里面的方法

    1.原生调用vue.js 某个vue组件下的方法. 比如**.vue里面有个这样的方法: 如果这样的话,在iOS或者Android里面是调用不了这个ajax方法的. 需要在**.vue (我的版本是v ...