When I ran apt update
on Ubuntu, the following error occurred.
$ sudo apt update
[sudo] ****Password:
Get:1 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 InRelease
ignore:1 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 InRelease
Get:2 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 Release [574 B]
Get:2 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 Release [574 B]
hit:4 https://nvidia.github.io/libnvidia-container/ubuntu18.04/amd64 InRelease
hit:5 https://nvidia.github.io/nvidia-container-runtime/ubuntu18.04/amd64 InRelease
hit:6 http://dl.google.com/linux/chrome/deb stable InRelease
error:4 https://nvidia.github.io/libnvidia-container/ubuntu18.04/amd64 InRelease
The following signature is invalid: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <[email protected]>
error:5 https://nvidia.github.io/nvidia-container-runtime/ubuntu18.04/amd64 InRelease
The following signature is invalid: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <[email protected]>
Get:7 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
hit:8 http://packages.microsoft.com/repos/vscode stable InRelease
hit:9 http://jp.archive.ubuntu.com/ubuntu bionic InRelease
hit:10 http://jp.archive.ubuntu.com/ubuntu bionic-updates InRelease
hit:11 http://jp.archive.ubuntu.com/ubuntu bionic-backports InRelease
hit:12 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Get:13 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
hit:14 http://ppa.launchpad.net/hertg/egpu-switcher/ubuntu bionic InRelease
hit:15 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu bionic InRelease
Get:16 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [49.0 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [59.5 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Obtained 264 kB in 3 seconds(85.1 kB/s)
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
All packages are up to date.
W:An error occurred during signature verification. The repository is not updated and the old index file is used. GPG error: https://nvidia.github.io/libnvidia-container/ubuntu18.04/amd64 InRelease:The following signature is invalid: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <[email protected]>
W:An error occurred during signature verification. The repository is not updated and the old index file is used. GPG error: https://nvidia.github.io/nvidia-container-runtime/ubuntu18.04/amd64 InRelease:The following signature is invalid: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <[email protected]>
W: https://nvidia.github.io/libnvidia-container/ubuntu18.04/amd64/Failed to get InRelease The following signature is invalid: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <[email protected]>
W: https://nvidia.github.io/nvidia-container-runtime/ubuntu18.04/amd64/Failed to get InRelease The following signature is invalid: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <[email protected]>
W:Failed to download some index files. These are either ignored or the older ones are used instead.
Execute the following command to solve it in one shot
$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
OK
Execution result
$ sudo apt update
Get:1 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 InRelease
ignore:1 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 InRelease
Get:2 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 Release [574 B]
Get:2 file:/var/cuda-repo-10-2-local-10.2.89-440.33.01 Release [574 B]
hit:4 http://jp.archive.ubuntu.com/ubuntu bionic InRelease
hit:5 https://nvidia.github.io/libnvidia-container/ubuntu18.04/amd64 InRelease
hit:6 http://jp.archive.ubuntu.com/ubuntu bionic-updates InRelease
hit:7 https://nvidia.github.io/nvidia-container-runtime/ubuntu18.04/amd64 InRelease
hit:8 http://jp.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:9 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
hit:10 http://dl.google.com/linux/chrome/deb stable InRelease
hit:11 http://packages.microsoft.com/repos/vscode stable InRelease
hit:12 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
hit:13 http://security.ubuntu.com/ubuntu bionic-security InRelease
hit:14 http://ppa.launchpad.net/hertg/egpu-switcher/ubuntu bionic InRelease
hit:15 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu bionic InRelease
64.I got 4 kB in 2 seconds(31.6 kB/s)
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
All packages are up to date.
I decided to create a script file in case the same error occurs in the future.
#!/bin/bash
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
Reference