无法在 centos 7 上下载存储库“pgdg-common”的元数据

问题描述 投票:0回答:1

当我尝试在 CentOS Stream 8 上安装或更新软件包时,会出现此错误

[root@e2e-101-138 \~\]# 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 服务器上的软件包或库。

服务器详细信息==>

[root@e2e-101-138 ~]# 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
linux stream centos
1个回答
0
投票

存储库 URL 可能已损坏。

对于 CentOS 7 运行:

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

然后:

yum update -y
© www.soinside.com 2019 - 2024. All rights reserved.