centos 无法下载存储库“powertools”的元数据:无法下载repomd.xml

rxztt3cl  于 10个月前  发布在  其他
关注(0)|答案(1)|浏览(222)

我想在Centos 8上启用Powertools来安装KDE。但我得到这个错误:

Errors during downloading metadata for repository 'powertools':

  • Status code: 403 for http://vault.centos.org/centos/8/PowerTools/x86_64/os/repodata/repomd.xml (IP: 172.19.93.163)
    Error: Failed to download metadata for repo 'powertools': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried ```
字符串
我的/etc/yum.repos.d/看起来像这样:x1c 0d1x的数据
我的Powertools存储库文件看起来像这样:
#
# The ###mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are 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, you can try the commented out
# baseurl line instead.
[powertools]
name=CentOS Linux $releasever - PowerTools
###mirrorlist=http://###mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
~
~
~
~ ```


我将基本URL更改为指向Vault的URL。我明白这与Centos 8在2021年达到寿命结束有关。我运行了这些命令:

# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*


和/或

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-*


我只需要一个有效的网址在哪里安装电动工具。有什么我错过了吗?

n1bvdmb6

n1bvdmb61#

我找到了一个可行的解决方案:
1.我用相同的Linux映像安装了一个Virtual Box
1.我从virtualbox映像中复制了repo文件,并替换了当前虚拟机上的文件。我这样做是因为我想重置回购文件。3.(最重要的一步)我迁移到了Rocky Linux。这是Centos 8的一个分叉。就像它应该的那样工作。它基本上就像一个有工作回购的Centos。
Rocky Linux有很好的文档,而且它很好用。

相关问题