Ask Your Question
0

Updating APT Key for Ubuntu 16.04 LTS On Master

asked 2017-02-24 00:52:13 -0600

zig gravatar image

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: NOPUBKEY 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: NOPUBKEY 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) release@puppet.com" 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 ftpmaster@ubuntu.com sub 2048g/79164387 2004-09-12

    pub 4096R/C0B21F32 2012-05-11 uid Ubuntu Archive Automatic Signing Key (2012) ftpmaster@ubuntu.com

    pub 4096R/EFE21092 2012-05-11 uid Ubuntu CD Image Automatic Signing Key (2012) cdimage@ubuntu.com

    pub 1024D/FBB75451 2004-12-30 uid Ubuntu CD Image Automatic Signing Key cdimage@ubuntu.com

    pub 4096R/EF8D349F 2016-08-18 [expires: 2021-08-17] uid Puppet, Inc. Release Key (Puppet, Inc. Release Key) release@puppet.com 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 ...

(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-02-24 16:59:36 -0600

csharpsteen gravatar image

The GPG key used to sign PE releases prior to the 2016.4 LTS release expired on January 5, 2017. An extended copy of the public key, along with instructions for use, can be obtained from the Puppet support portal:

https://support.puppet.com/hc/en-us/a...

edit flag offensive delete link more

Comments

Thank you! I cant seem to get access to that link (not able to use my credentials there).

zig gravatar imagezig ( 2017-02-24 18:53:36 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-02-24 00:47:39 -0600

Seen: 333 times

Last updated: Feb 24