Skip to content

apt fail to install container-toolkit - gpg public key not available #1478

@denis-roy-cima

Description

@denis-roy-cima

Good day @elezar

Trying to install nvidia-container-toolkit by following this guide: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

After pasting this command:

curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
  && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
    sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
    sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list

apt-get update yields this error message:

W: GPG error: https://nvidia.github.io/libnvidia-container/stable/deb/amd64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DDCAE044F796ECB0
E: The repository 'https://nvidia.github.io/libnvidia-container/stable/deb/amd64  InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

It might have something to do with the fact that the GPG key is expired:

curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
pub   rsa4096 2017-09-28 [SCE]
      C95B321B61E88C1809C4F759DDCAE044F796ECB0
uid           NVIDIA CORPORATION (Open Source Projects) <[cudatools@nvidia.com](mailto:cudatools@nvidia.com)>
sub   rsa2048 2019-09-18 [S] [expired: 2021-06-16]

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions