Install the Tanzu CLI using a package manager on YUM or DNF (RHEL) fails with "Error: Failed to download metadata for repo 'tanzu-cli': repomd.xml GPG signature verification error: Bad GPG signature"
search cancel

Install the Tanzu CLI using a package manager on YUM or DNF (RHEL) fails with "Error: Failed to download metadata for repo 'tanzu-cli': repomd.xml GPG signature verification error: Bad GPG signature"

book

Article ID: 384305

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Tanzu Kubernetes Runtime Tanzu Mission Control Tanzu Mission Control Prepaid Commitment Plan per Core VMware Tanzu Mission Control VMware Tanzu Mission Control - SM VMware Tanzu Mission Control Self-Managed Tanzu Kubernetes Grid VMware Tanzu Kubernetes Grid 1.x VMware Tanzu Kubernetes Grid Management VMware Tanzu Kubernetes Grid Plus VMware Tanzu Kubernetes Grid Plus 1.x VMware Tanzu Kubernetes Grid Service (TKGs) Tanzu Service Mesh Enterprise - Per Core - Commitment Plan VMware Tanzu Service Mesh VMware Tanzu Advanced VMware Tanzu for Kubernetes Operations VMware Tanzu Platform Vmware Tanzu Platform - SM VMware Tanzu Standard VMware Tanzu Toolkit for Kubernetes VMware Tanzu Toolkit for Kubernetes 1.x

Issue/Introduction

When attempting to install the tanzu CLI on an YUM or DNF (RHEL) system, it fails.

The failure occurs upon running the command: sudo yum install tanzu-cli-1.3.0

The error reported is similar to below:

Error: Failed to download metadata for repo 'tanzu-cli': repomd.xml GPG signature verification error: Bad GPG signature

Environment

ANY environment that requires or makes use of the tanzu CLI.  

Such as:

  • Tanzu Kubernetes Grid

  • Tanzu Mission Control

  • vSphere IaaS control plane Documentation (formerly vSphere with Tanzu)

Cause

2024.12.16: Status Summary:

Ongoing issue. Investigation in progress:

2024.12.16: Status Details: 

It is believed this is an issue when using RPM signing in conjunction with DigiCert​​®​​ Software Trust Manager

As mentioned in the DigiCert article, Sign RPM files with GPG and RPM signing tool using Smartcard Daemon (SCD):

Certain versions of RHEL and CentOS, specifically versions 8 and 9, may encounter issues when attempting to use RPM signing in conjunction with Software Trust Manager when using a combination of a subkey and a master key. To address this issue, download a keyring with only a master key enabled for signing.

Resolution

Until we have put in place a permanent solution, the workaround is to disable GPG check:

Steps:

sudo yum install --nogpgcheck -y tanzu-cli-1.3.0 

    • Using dnf:

sudo dnf install --nogpgcheck -y tanzu-cli-1.3.0 

Additional Information

If you have further issues or questions, please open a Tanzu Support Request.