Centos6

yum 更新失敗 > 錯誤:無法檢索儲存庫的儲存庫元數據 (repomd.xml):powerstack。請驗證其路徑並重試

  • June 18, 2017

我正在嘗試在我的生產伺服器上進行yum 更新,該伺服器以拋出錯誤結束,這就是它為該命令返回的內容 -

Loaded plugins: fastestmirror, security
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: mirrors.rit.edu
* epel: fedora-epel.mirrors.tds.net
* extras: mirrors.rit.edu
* updates: mirrors.rit.edu
* webtatic: us-east.repo.webtatic.com
http://download.powerstack.org/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'download.powerstack.org'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: powerstack. Please verify its path and try again

我試過命令yum clean all它返回這個 -

Loaded plugins: fastestmirror, security
Cleaning repos: base epel extras longview mod-pagespeed newrelic powerstack updates varnish-3.0 webtatic
Cleaning up Everything 

這是我的 yum 配置(/etc/yum.conf

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
multilib_policy=best

這是**/etc/yum.repos.d/epel.repo**配置 -

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

我也無法安裝任何軟體包,拋出同樣的錯誤。感謝你的幫助。謝謝

此錯誤表明您的機器無法連接到儲存庫powerstack/etc/yum.repos.d/powerstack.repo要更新您的系統,您可以通過從 1更改為 0在文件中禁用它enable或執行 `yum update –disablerepo=powerstack*"

引用自:https://serverfault.com/questions/856432