文档章节

Ubuntu12.04 更新源

Jian-Yong
 Jian-Yong
发布于 2011/03/27 13:34
字数 947
阅读 36217
收藏 22
1、首先备份Ubuntu 12.04源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表,有备无患嘛)
2、修改更新源
sudo gedit /etc/apt/sources.list (打开Ubuntu 12.04源列表文件)
3、将下面的代码粘贴进去(“#”开头的那一行为注释,可以直接复制进文件中)

4、通知ubuntu启用新的更新源   sudo apt-get update

#台湾源
deb http://tw.archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ precise-security universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ precise-security universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ precise-updates universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ precise-updates universe main multiverse restricted

#网易 Ubuntu 11.10 源(速度很快)
deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted

#骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin
deb http://ubuntu.srt.cn/ubuntu/ precise main universe restricted multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ precise main universe restricted multiverse
deb http://ubuntu.srt.cn/ubuntu/ precise-security universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ precise-security universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ precise-updates universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ precise-proposed universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ precise-proposed universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ precise-updates universe main multiverse restricted

#mirror.lupaworld.com的源,速度很快
deb http://mirror.lupaworld.com/ubuntu/archive/ precise main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ precise-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ precise-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ precise-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ precise main restricted universe multiverse

#ubuntu.cn99.com源(推荐):
deb http://ubuntu.cn99.com/ubuntu/ precise main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ precise-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ precise main restricted universe multiverse

#电子科技大学
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

#中国科技大学
deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

#北京理工大学
deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

#兰州大学
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ precise main multiverse restricted universe

#上海交通大学
deb http://ftp.sjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ precise main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

© 著作权归作者所有

Jian-Yong
粉丝 12
博文 93
码字总数 33351
作品 0
郑州
私信 提问
加载中

评论(7)

xmfbit
xmfbit
貌似北理工的镜像源错写成了北交吧。。。
hkshadow
hkshadow

引用来自“Jian-Yong”的评论

引用来自“hkshadow”的评论

装一个语言包,老所出问题,找了很久发现原来所这个源得问题,结果还是换回了原生才解决了问题,看来这些都不靠谱。

我平时也不用这些源,默认的即可,已经换成12.10了

个人觉得还是12.04比较稳定,虽然12.10可以体验Gnome3.6。根据个人吧。
Jian-Yong
Jian-Yong 博主

引用来自“hkshadow”的评论

装一个语言包,老所出问题,找了很久发现原来所这个源得问题,结果还是换回了原生才解决了问题,看来这些都不靠谱。

我平时也不用这些源,默认的即可,已经换成12.10了
hkshadow
hkshadow
装一个语言包,老所出问题,找了很久发现原来所这个源得问题,结果还是换回了原生才解决了问题,看来这些都不靠谱。
凉风微软
凉风微软
好贴呀。
coolface
coolface
网易的源,这几天都翘了
不流泪的机场
不流泪的机场
顶一个,每次装系统后必看,哈哈!

还是上海交大的速度最快,我用的是移动铁通2M宽带
Ubuntu 12.04桌面版更新源

1、首先备份Ubuntu12.04源列表 sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表) 2、修改更新源 sudo gedit /etc/apt/sources.list (打开Ubuntu 12.04源......

狼行-狼行
2014/06/19
0
0
Ubuntu12.04安装VirtualBox

1、终端命令 编辑sources.list sudo gedit /etc/apt/sources.list 2、添加 软件源 将下面的地址加入sources.list 的末尾,保存并退出 deb http://download.virtualbox.org/virtualbox/debian...

ForJustice
2012/07/21
0
1
首次使用Ubuntu 12.04的必要配置

为什么要把这条放在第一位呢?因为如果您需要修改IP地址、改配置文件等功能,必须要用到Vim编辑器。自带的Vim编辑器不知为什么会有一些奇怪的现象,比如无法修改原文、backspace无法删除等。...

prpr
2014/03/20
0
0
ubuntu12.04 apt-get upgrade失败的问题

今天,维护自己ubuntu服务器,使用apt-get upgrade更新源,但是出现下面的失败信息: Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com oneiric-security...

慎思
2014/04/13
0
0
kali 2017 更新源

参考文章 linux update更新源 Kali 2.0替换APT更新源为国内源并更新系统 通常,我们在VMware中安装 linux 后,除了安装VM tools,还需更新源,但官方的更新源其速度往往不适合我们, 这就要选...

Ho0oH
2017/09/18
0
0

没有更多内容

加载失败,请刷新页面

加载更多

spdlog静态库方式

spdlog新版本提供了静态库方式,这样比原来的header only方式显著提升了编译速度。 这里分析一下怎么使用: 根目录下的CMakeLists.txt中主要有如下内容: ...include(cmake/ide.cmake) // ...

chuqq
12分钟前
1
0
转载《Java 开发手册》今日发布,向全球开发者致敬!

致全球Java开发者: 代码是二进制世界的交流方式,极致的代码是我们的荣耀。 2017年春天,《阿里巴巴Java开发手册》发布,我们希望在涵盖编程规约、异常日志、单元测试、安全规约、MySQL数据...

薛定谔的旺
15分钟前
20
0
Windows常用快捷键

1、Ctrl+Shift+T 恢复误关网页 2、Ctrl+Y 反撤销(Ctrl+Z撤销)

南风末
16分钟前
0
0
获取一个字符串相同的字符出现的次数及字符分别是

// 统计一个String字符串中出现的相同字符的次数 及分别是什么 public static void charStat(String str){ long start = System.currentTimeMillis(); Map<Character,In......

凉城旧影
23分钟前
2
0
Nodejs 10以上版本不支持Deepin 问题

I solved this problem by this way : Copy script from https://deb.nodesource.com/setup_12.x. Find line DISTRO=$(lsb_release -c -s) and change to DISTRO="jessie". Save all script ......

SuShine
28分钟前
3
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部