ubuntu apt problem and solution

1
2
3
4
5
6
7
While running sudo apt-get update, I was hitting this problem:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://apt.puppetlabs.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7F438280EF8D349F
W: Failed to fetch http://apt.puppetlabs.com/dists/precise/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.

The solution is to run the following commands:

1
2
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7F438280EF8D349F

Share