yum 更新失败 > 错误:无法检索存储库的存储库元数据 (repomd.xml):powerstack。请验证其路径并重试

yum 更新失败 > 错误:无法检索存储库的存储库元数据 (repomd.xml):powerstack。请验证其路径并重试

我正在努力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 全部清理返回的是 -

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

我也无法安装任何软件包,出现同样的错误。感谢您的帮助。谢谢

答案1

此错误表明您的计算机无法连接到存储库powerstack。要更新系统,您可以/etc/yum.repos.d/powerstack.repo通过将文件中的 1 更改enable为 0 来禁用它,或者运行“yum update --disablerepo=powerstack*”

相关内容