2017-05-03 5 views
0

私は、私はCentOSの5.9にyum updateをインストールしようとしていますが、私はエラーエラー:レポのための有効なBASEURLを見つけることができません:ベース

> Loaded plugins: fastestmirror, kmod Loading mirror speeds from cached 
> hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or 
> file. Eg. Invalid release/ removing mirrorlist with no valid mirrors: 
> /var/cache/yum/base/mirrorlist.txt Error: Cannot find a valid baseurl 
> for repo: base 

を入手してくださいいくつかの助けを必要とし、この

を修正する方法私を助けてくださいCentOSの-Base.repo

[base] 
name=CentOS-$releasever - Base 
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os 
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 
exclude=redhat-logos php53* 

#released updates 
[updates] 
name=CentOS-$releasever - Updates 
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates 
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 
exclude=redhat-logos php53* 

#additional packages that may be useful 
[extras] 
name=CentOS-$releasever - Extras 
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras 
baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 
exclude=redhat-logos php53* 

#additional packages that extend functionality of existing packages 
[centosplus] 
name=CentOS-$releasever - Plus 
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus 
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ 
gpgcheck=1 
enabled=0 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 
exclude=redhat-logos php53* 

#contrib - packages by Centos Users 
[contrib] 
name=CentOS-$releasever - Contrib 
#mirrorlist=http://mirrorlist.centos.org/?release=5$releasever&arch=$basearch&repo=contrib 
baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ 
gpgcheck=1 
enabled=0 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 
exclude=redhat-logos php53* 

更新内容は、事前にありがとうございます。

答えて

0

これは2つの可能性が原因で発生している可能性があります。

1. CentOSのバージョンに

ベースを見つけることがあまりにも古いレポは、私がlink経由でOSを見つけることを試みました。また、この情報をreadmeファイルから取得します。

This directory (and version of CentOS) is deprecated. For normal users, you should use /5/ and not /5.9/ in your path. Please see this FAQ concerning the CentOS release scheme:

https://wiki.centos.org/FAQ/General

If you know what you are doing, and absolutely want to remain at the 5.9 level, go to http://vault.centos.org/ for packages. Please keep in mind that 5.9 no longer gets any updates

このリンクでは、別のlinkで古いバージョンを見つけることをお勧めします。したがって、CentOS-Base.repoを変更する必要があります。

http://mirror.centos.org/centos/***http://vault.centos.org/***に変更しました。例えば

mirrorlist serverをチェック

Original: baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ 
New:  baseurl=http://vault.centos.org/$releasever/os/$basearch/ 

2.ネットワークの問題は

アクセス可能です。

$ ping mirrorlist.centos.org 

以下のエラーメッセージが表示される場合は、この問題を解決するには

ping: unknown host mirrorlist.centos.org 

resolv.confに有効なネームサーバを追加する(使用sudoをrootユーザーでない場合)

$ echo nameserver 8.8.8.8 > /etc/resolv.conf 
+0

をI pingしようとしました。これは、108-43-236-85.rev.customer-net.de(85.236.43.108)からの64バイトです。icmp_seq = 2 ttl = 53 time = 364 ms – jemz

+0

'/ etc/yum.repos.d/CentOS-Base.repo'?レポが古すぎる可能性があるため、ミラーリストサーバーでそれらを見つけることはできません。 –

+0

これはhttp://vault.centosの結果です。org/centos/5/os/x86_64/repodata/repomd.xml:[Errno 14] HTTPエラー404:見つかりません 他のミラーを試しています。 エラー:リポジトリ:baseのリポジトリメタデータ(repomd.xml)を取得できません。そのパスを確認してもう一度やり直してください – jemz

2

これはCentOSに5が廃止されているためであるとベースのレポファイルを手動で更新する必要がありますすべてをCentosの金庫に向ける。

出典:http://realtechtalk.com/Centos_59_Working_Vault_Repo_file-1921-articles

バックアップし/etc/yum.repos.d/Centos-Base.repo

次のあなたは再び軌道に乗るだろうと交換:

# CentOS-Base.repo 
# 
# 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-5.9 - Base 
#mirrorlist=http://mirrorlist.centos.org/?release=5.9&arch=$basearch&repo=os 
baseurl=http://vault.centos.org/5.9/os/$basearch/ 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 

#released updates 
[updates] 
name=CentOS-5.9 - Updates 
#mirrorlist=http://mirrorlist.centos.org/?release=5.9&arch=$basearch&repo=updates 
baseurl=http://vault.centos.org/5.9/updates/$basearch/ 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 

#additional packages that may be useful 
[extras] 
name=CentOS-5.9 - Extras 
#mirrorlist=http://mirrorlist.centos.org/?release=5.9&arch=$basearch&repo=extras 
baseurl=http://vault.centos.org/5.9/extras/$basearch/ 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 

#additional packages that extend functionality of existing packages 
[centosplus] 
name=CentOS-5.9 - Plus 
#mirrorlist=http://mirrorlist.centos.org/?release=5.9&arch=$basearch&repo=centosplus 
baseurl=http://vault.centos.org/5.9/os/$basearch/centosplus/ 
gpgcheck=1 
enabled=0 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 

#contrib - packages by Centos Users 
[contrib] 
name=CentOS-5.9 - Contrib 
#mirrorlist=http://mirrorlist.centos.org/?release=5.9&arch=$basearch&repo=contrib 
baseurl=http://vault.centos.org/5.9/os/$basearch/contrib/ 
gpgcheck=1 
enabled=0 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 
+0

あなたの有益な答えに多くの感謝! – SOUser

関連する問題