Hello,
Today on my Puppet master, I am receiving the following error when performing an apt-get update:
root@puppy:/home/user# apt-get update
Get:1 file:/opt/puppetlabs/server/data/packages/public/2016.2.1/ubuntu-16.04-amd64-1.5.3 ./ InRelease Ign:1 file:/opt/puppetlabs/server/data/packages/public/2016.2.1/ubuntu-16.04-amd64-1.5.3 ./ InRelease Get:2 file:/opt/puppetlabs/server/data/packages/public/2016.2.1/ubuntu-16.04-amd64-1.5.3 ./ Release [505 B] Get:2 file:/opt/puppetlabs/server/data/packages/public/2016.2.1/ubuntu-16.04-amd64-1.5.3 ./ Release [505 B] Err:3 file:/opt/puppetlabs/server/data/packages/public/2016.2.1/ubuntu-16.04-amd64-1.5.3 ./ Release.gpg The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1054B7A24BD6EC30 Hit:4 http://us.archive.ubuntu.com/ubuntu xenial InRelease Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:6 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:7 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Fetched 306 kB in 0s (412 kB/s) Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: file:/opt/puppetlabs/server/data/packages/public/2016.2.1/ubuntu-16.04-amd64-1.5.3 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1054B7A24BD6EC30 W: Failed to fetch file:/opt/puppetlabs/server/data/packages/public/2016.2.1/ubuntu-16.04-amd64-1.5.3/./Release.gpg The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1054B7A24BD6EC30 W: Some index files failed to download. They have been ignored, or old ones used instead.
After receiving this error, I attempted to update the key; however, I realized that, rather than updating, I needed a brand new key, so I preformed the following:
1. Deleted my current expired key: "apt-key del 4BD6EC30"
2. Fetched the new key:
root@puppy:# gpg --keyserver pgp.mit.edu --recv-key 7F438280EF8D349F
gpg: requesting key EF8D349F from hkp server pgp.mit.edu
gpg: key EF8D349F: "Puppet, Inc. Release Key (Puppet, Inc. Release Key) " not changed
gpg: Total number processed: 1
gpg: unchanged: 1
3. Added the new key:
root@puppy:# gpg -a --export EF8D349F | apt-key add -
OK
4. Viewed my key list again:
root@puppy:~# apt-key list
/etc/apt/trusted.gpg
--------------------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key
sub 2048g/79164387 2004-09-12
pub 4096R/C0B21F32 2012-05-11
uid Ubuntu Archive Automatic Signing Key (2012)
pub 4096R/EFE21092 2012-05-11
uid Ubuntu CD Image Automatic Signing Key (2012)
pub 1024D/FBB75451 2004-12-30
uid Ubuntu CD Image Automatic Signing Key
pub 4096R/EF8D349F 2016-08-18 [expires: 2021-08-17]
uid Puppet, Inc. Release Key (Puppet, Inc. Release Key)
sub 4096R/656674AE 2016-08-18 [expires: 2021-08-17]
5. Ran apt-get update again with the same outcome.
6. I noticed that in the error, it was mentioning the directory, /opt/puppetlabs/server/data/packages/public/2016.2.1/ubuntu-16.04-amd64-1.5.3. I went into that directory and updated the Release and Release.gpg file with the following commands:
wget -q http://apt.puppetlabs.com/dists/xenial/Release
wget -q http://apt.puppetlabs.com/dists/xenial/Release.gpg
7. After running apt-get update again, I no longer received a public key error, but I did receive the following:
Reading package lists... Done
E: Failed to fetch file:/opt/puppetlabs/server/data/packages/public/2016.2.1/ubuntu-16.04-amd64-1.5.3/./Release Unable to find expected entry 'Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
What exactly am I doing wrong here?
Thanks
↧