Ubuntu更新源
# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release amd64 (20091027)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.deb http://tel.mirrors.163.com/ubuntu/ lucid main restricted
deb-src http://tel.mirrors.163.com/ubuntu/ lucid main restricted## Major bug fix updates produced after the final release of the
## distribution.## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://tel.mirrors.163.com/ubuntu/ lucid universe
deb-src http://tel.mirrors.163.com/ubuntu/ lucid universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://tel.mirrors.163.com/ubuntu/ lucid multiverse
deb-src http://tel.mirrors.163.com/ubuntu/ lucid multiverse## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://cn.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partnerdeb http://tel.mirrors.163.com/ubuntu/ lucid-security main restricted
deb-src http://tel.mirrors.163.com/ubuntu/ lucid-security main restricted
deb http://tel.mirrors.163.com/ubuntu/ lucid-security universe
deb-src http://tel.mirrors.163.com/ubuntu/ lucid-security universe
deb http://tel.mirrors.163.com/ubuntu/ lucid-security multiverse
deb-src http://tel.mirrors.163.com/ubuntu/ lucid-security multiverse
# deb http://mirrors.sohu.com/ubuntu/ karmic main
由于我使用了OpenDNS,所以访问http://mirrors.163.com/ 网易的官方更新源的时候,老是会切换到60.12.227.94.(网通的那个IP).
一开始不知道,没想到会是这个原因.所以每次更新的时候,速度非常的慢.
今天突然想到了这个问题,所以研究了一下.
感觉网易考虑到了我的这种情况,所以专门建了一个电信的镜像,而且还申请了域名http://tel.mirrors.163.com .所以我就想出了下面的方法.
自己做一个更新源,只需要把以前的Sources地址,改成了电信的那个域名.
于是,所有的问题就迎刃而解了.
开心之余,把自己的Sources.list文件发布了出来,以示纪念.
(顺便说下,代码的最后一行是搜狐的,是多余的,可以删除的.本来是想用搜狐的,但是搜狐没有专门针对电信的域名,所以想法就搁浅了.)
最后,把整个过程的代码都罗列一下吧.
gedit /etc/apt/sources.list
修改完成以后.
sudo apt-get update
sudo apt-get upgrade
posted on 2010-08-21 17:59 meteormatt 阅读(334) 评论(0) 编辑 收藏 举报