QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1001|回复: 5

fc4 下,用yum出现问题,我是新手,请帮忙啊

[复制链接]
发表于 2005-9-10 19:12:42 | 显示全部楼层 |阅读模式
我用yum update 命令出现下面的提示
Repository updates-released already added, not adding again
Repository base already added, not adding again
Setting up Update Process
Setting up repositories
ftp://ftp.sjtu.edu.cn/fedora/linux/core/4/i386/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, '\xe5\x9f\x9f\xe5\x90\x8d\xe8\xa7\xa3\xe6\x9e\x90\xe6\x9a\x82\xe6\x97\xb6\xe5\xa4\xb1\xe8\xb4\xa5')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
我刚开始学习linux,请各位帮帮忙了 ,我只能上教育网,所以我找了伤害交大的FTP
这是我配置的yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=0
[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/core/4/i386/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/core/updates/4/i386/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
yum.repos.d目录里的fedora-devel.repo
[development]

name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-rawhide
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/core/4/i386/os/
enabled=0
gpgcheck=0
fedora-extras-devel.repo文件为
[extras-development]
name=Fedora Extras $releasever - Development Tree
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/core/4/i386/os/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=0

fedora-extras.repo文件
[extras]
name=Fedora Extras $releasever - $basearch
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/core/4/i386/os/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1

fedora.repo
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/core/4/i386/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

fedora-updates.repo
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/core/updates/4/i386/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

fedora-updates-testing.repo
[updates-testing]
name=Fedora Core $releasever - $basearch - Test Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-testing-fc$releasever
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/core/updates/4/i386/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test
 楼主| 发表于 2005-9-10 19:15:45 | 显示全部楼层
各位大哥最好能帮我改好,如何设置请讲的详细一点,小弟在此谢谢了
回复

使用道具 举报

发表于 2005-9-11 01:19:18 | 显示全部楼层
地址不对吧

# Please choose the nearest mirror http://www.fedora.us/wiki/FedoraMirrorList

# Add any local / 3rd party repositories here..

# Fedora Core 4 z ayo.freshrpm

rpm http://ayo.freshrpms.net/ fedora/linux/4/i386 updates core freshrpms extras

# Livna 3rd party packages

rpm http://rpm.livna.org/ fedora/4/i386 lvn

rpm http://rpm.livna.org/ fedora/4/i386 stable

# Kde-redhat.org repository(s) for RedHat/Fedora 4

rpm http://apt.kde-redhat.org/apt kde-redhat/fedora/4/i386 stable

# ayo.sw.be Fedora Core 4

rpm http://apt.sw.be fedora/4/en/i386 dag

rpm http://download.fedora.us/ fedora/fedora/latest/i386 os updates stable

rpm http://ayo.ie.freshrpms.net/ fedora/linux/4/i386 freshrpms core extras

# Dag RPM Repository for Fedora Core 4

rpm http://ftp.heanet.ie/pub/freshrpms/pub/dag fedora/4/en/i386 dag

rpm http://wftp.tu-chemnitz.de/pub/linux/dag fedora/4/en/i386 dag

# Bzium - SPRAWDZI? TO!!

rpm http://apt.bzium.net fc3/i386 afrod

# Kadu

rpm http://kadu.net/~nastian/ apt-kadu/fedora/3 kadu dodatki modules

# Fedora US

rpm http://download.fr.fedora.us/ fedora/fedora/latest/i386 os updates stable

# DRIES

rpm http://search.belnet.be/ packages/dries.ulyssis.org/fedora/fc4/i386 dries
回复

使用道具 举报

 楼主| 发表于 2005-9-11 07:41:55 | 显示全部楼层
谢谢了,可是我在教育网,上不了国外的网站,yum由不能用代理
回复

使用道具 举报

 楼主| 发表于 2005-9-11 07:53:09 | 显示全部楼层
找了香港大学的也不行啊,提示如下Repository updates-released already added, not adding again
Repository base already added, not adding again
Setting up Update Process
Setting up repositories
http://download.stmc.edu.hk/fedora/linux/core/updates/4/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, '\xe5\x9f\x9f\xe5\x90\x8d\xe8\xa7\xa3\xe6\x9e\x90\xe6\x9a\x82\xe6\x97\xb6\xe5\xa4\xb1\xe8\xb4\xa5')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
回复

使用道具 举报

 楼主| 发表于 2005-9-11 09:58:46 | 显示全部楼层
解决了,我把source文件改成上边的 香港大学的地址就可以用up2date了
谢谢云燕的帮忙
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-12 10:55 , Processed in 0.049437 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表