|
我用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 |
|