Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5962

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F59B5F99B1BE0B4 in linux

$
0
0

I am using Ubuntu 22.04 system and When I try to run

sudo apt update

The below error occurs:

vijay@vijay-ThinkPad-E15-Gen-2:~$ sudo apt-get updateGet:1 file:/var/cuda-repo-ubuntu2004-11-2-local  InReleaseIgn:1 file:/var/cuda-repo-ubuntu2004-11-2-local  InReleaseGet:2 file:/var/cuda-repo-ubuntu2204-12-4-local  InRelease [1,572 B]Get:3 file:/var/cudnn-local-repo-ubuntu2204-9.0.0  InRelease [1,572 B]Get:2 file:/var/cuda-repo-ubuntu2204-12-4-local  InRelease [1,572 B]Get:4 file:/var/cuda-repo-ubuntu2004-11-2-local  Release [564 B]Get:3 file:/var/cudnn-local-repo-ubuntu2204-9.0.0  InRelease [1,572 B]Get:4 file:/var/cuda-repo-ubuntu2004-11-2-local  Release [564 B]Hit:6 https://deb.nodesource.com/node_18.x nodistro InRelease                                                                                                                                              Hit:7 https://packages.microsoft.com/repos/code stable InRelease                                                                                                                                           Err:6 https://deb.nodesource.com/node_18.x nodistro InRelease                                                                                                                     The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F59B5F99B1BE0B4Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                  Hit:9 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                                               Hit:10 http://in.archive.ubuntu.com/ubuntu jammy InRelease                                                                               Hit:11 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease               Hit:12 http://in.archive.ubuntu.com/ubuntu jammy-backports InReleaseHit:13 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InReleaseReading package lists... DoneW: file:/var/cuda-repo-ubuntu2004-11-2-local/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://deb.nodesource.com/node_18.x nodistro InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F59B5F99B1BE0B4W: Failed to fetch https://deb.nodesource.com/node_18.x/dists/nodistro/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F59B5F99B1BE0B4W: Some index files failed to download. They have been ignored, or old ones used instead.

I have checked to fix this I got solutions like the below command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2F59B5F99B1BE0B4

The execution ecnds as below:

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).Executing: /tmp/apt-key-gpghome.5riFaj3RU8/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 2F59B5F99B1BE0B4gpg: key 2F59B5F99B1BE0B4: "NSolid <nsolid-gpg@nodesource.com>" not changedgpg: Total number processed: 1gpg:              unchanged: 1

But this is not solved the issue. When I run again

 sudo apt update 

It throws the same error.

I don't know how to fix this. How to debug the exact problem.


Viewing all articles
Browse latest Browse all 5962

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>