English 中文(简体)
未能下载CentOS第7号储存库的元数据
原标题:Failed to download metadata for repository pgdg-common on CentOS 7

当我试图在CentOS/62/8上安装或更新包件时,就会出现这一错误:

cd ~
sudo yum update

产出:

PostgreSQL common RPMs for RHEL / Rocky 8 - x86_64                                                           613  B/s | 659  B     00:01
PostgreSQL common RPMs for RHEL / Rocky 8 - x86_64                                                           1.6 MB/s | 1.7 kB     00:00
PostgreSQL common RPMs for RHEL / Rocky 8 - x86_64                                                           503  B/s | 659  B     00:01

Error: Failed to download metadata for repo  pgdg-common : repomd.xml GPG signature verification error: Bad GPG signature

我试图安装Docker,或只是更新了我在CentOS 7服务器上的包裹或图书馆。

Server details

cd ~
hostnamectl

产出:

   Static hostname: e2e-101-138
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 7bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
           Boot ID: c0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Virtualization: kvm
  Operating System: CentOS Stream 8
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-529.el8.x86_64
      Architecture: x86-64
最佳回答

你可以尝试:

rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm

But for me, this didn t fix the issue. Until a proper solution is found, for me, renaming the following file worked:

cd /etc/yum.repos.d/
mv pgdg-redhat-all.repo pgdg-redhat-all.repo.old
yum update -y

至少应该让你现在安装和更新包件。

问题回答

中部地区7:

yum --disablerepo=* -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

聚氯乙烯存放处可能破碎。

中部地区7:

页: 1

sudo rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

然后:

yum update -y

我在双轨制和东道方管理着8号岩石。 我尝试了间谍建议,并遵循了该链接的指示,并为我做了出色的工作(与你一样,间谍)。 我在此再次为方便起见。

邮政管理处 GPG 关键更新——2024年1月3日

请注意,在“TL;DR:如何更新我的关键”一节中,邮政总局的文章中为你规定了许多 d线。 确保仔细选择你的版本。

虽然我信任Sresql.org, 我仍然担心的是,我第一次在考试和测验中测试过这一变化将影响到其他的处置。 清单

dnf repolist

之后,由后resql.org为洛克比提供dnf指挥 8. 完成后,我再次接过了政治指挥。 所有这一切都是好的。

清理海滩,删除与粉碎有关的档案,再in

sudo dnf clean all
sudo rm -rf /var/cache/dnf/*pgdg*




相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签