注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 科普系列之-使用Windows的..
 帮助

Fedora,Suse,Ubunta,CnetOS安装源


2007-03-11 10:50:01
Fedora:
 
Ubunta:
Edgy (6.10) 版本
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list
用以下内容替换文件中的所有内容
deb http://archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb
http://archive.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse
deb
http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
deb
http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb
http://archive.ubuntu.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb
http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse
这里你也可以直接使用更快速的ubuntu.cn99.com的源(推荐):
deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb
http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb
http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb
http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb
http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb
http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse
这里你还可以使用速度也非常快的的mirror.lupaworld.com的源:
deb http://mirror.lupaworld.com/ubuntu/archive/ edgy main restricted universe multiverse
deb
http://mirror.lupaworld.com/ubuntu/archive/ edgy-security main restricted universe multiverse
deb
http://mirror.lupaworld.com/ubuntu/archive/ edgy-updates main restricted universe multiverse
deb
http://mirror.lupaworld.com/ubuntu/archive/ edgy-backports main restricted universe multiverse
deb
http://mirror.lupaworld.com/ubuntu/archive/ edgy-proposed main restricted universe multiverse
deb
http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ edgy main restricted universe multiverse
如果是教育网用户请使用上海交通大学的源:
deb http://ftp.sjtu.edu.cn/ubuntu/ edgy main multiverse restricted universe
deb
http://ftp.sjtu.edu.cn/ubuntu/ edgy-security main multiverse restricted universe
deb
http://ftp.sjtu.edu.cn/ubuntu/ edgy-updates main multiverse restricted universe
deb
http://ftp.sjtu.edu.cn/ubuntu/ edgy-backports main multiverse restricted universe
deb
http://ftp.sjtu.edu.cn/ubuntu/ edgy-proposed main multiverse restricted universe
deb
http://ftp.sjtu.edu.cn/ubuntu-cn/ edgy main multiverse restricted universe bleeding
保存编辑好的文件
sudo apt-get update
 
OpenSUSE:
 
CentOS的中国镜像
修改/etc/yum.repos.d/CentOS-Base.repo,将镜象站点地址改为在中国的景象站点地址。如下:

CODE:
[Copy to clipboard]
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
        http://mirror.be10.com/centos/$releasever/os/$basearch/
        http://centos.hostlink.com.hk/$releasever/os/$basearch/
        http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
        http://mirror.be10.com/centos/$releasever/os/$basearch/
        http://centos.hostlink.com.hk/$releasever/os/$basearch/
        http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
        http://mirror.be10.com/centos/$releasever/os/$basearch/
        http://centos.hostlink.com.hk/$releasever/os/$basearch/
        http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirror.vmmatrix.net/CentOS/$releasever/os/$basearch/
        http://mirror.be10.com/centos/$releasever/os/$basearch/
        http://centos.hostlink.com.hk/$releasever/os/$basearch/
        http://ftp.hostrino.com/pub/centos/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4


然后更新一次系统,并将yum设置为自启动,让其即时自动为系统更新。

# yum -y update

# chkconfig yum on

# /etc/rc.d/init.d/yum start




    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: