Skip to content

www.rolfje.com

Installing GPG keys for Debian Backports

Posted on 2017-06-09 By rolfje 6 Comments on Installing GPG keys for Debian Backports

For Let’s Encrypt to automatically renew certificates on your Raspberry Pi, you probably want to install certbot. The installation instructions of certbot tell you to make use of the Debian Backports packages. Following the instructions to install backports packages into apt-get on raspbian (which is a Debian Jessie), you will probably run into the following error:

$ sudo apt-get update
...
W: GPG error: http://ftp.debian.org jessie-backports InRelease:
   The following signatures couldn't be verified because the public
   key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY
   7638D0442B90D010

For some reason the GPG keys (there are two listed above) of Debian Backports are not automatically fetched from the GPG keyservers. Using this stackoverflow answer, I fixed the GPG key problem as follows:

$ sudo su -

$ gpg --keyserver pgp.mit.edu --recv-keys \
        7638D0442B90D010 8B48AD6246925553
gpg: requesting key 2B90D010 from hkp server pgp.mit.edu
gpg: requesting key 46925553 from hkp server pgp.mit.edu
gpg: key 2B90D010: public key "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>" imported
gpg: key 46925553: public key "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>" imported
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: next trustdb check due at 2018-08-19
gpg: Total number processed: 2
gpg: imported: 2 (RSA: 2)

$ gpg --armor --export 7638D0442B90D010 | apt-key add -
OK

$ gpg --armor --export 8B48AD6246925553 | apt-key add -
OK

After importing the keys, exit from the root and try the usual update:

$ exit
$ sudo apt-get update
Hit http://ftp.debian.org jessie-backports InRelease
...
Reading package lists... Done

Presto! You can now proceeed with installing certbot, or any other package requiring debian backports.

Software Tags:Debian, linux, security

Post navigation

Previous Post: Make the ESP8266 talk 9600 baud
Next Post: Mattermost Delete Channel “fixed”

Comments (6) on “Installing GPG keys for Debian Backports”

  1. Steven Buehler says:
    2018-11-27 at 20:56

    A quicker method: `sudo apt-key adv –recv-keys 7638D0442B90D010 8B48AD6246925553`

    Reply
  2. lars says:
    2018-12-23 at 18:25

    Much appreciated

    Reply
  3. Chris Lope says:
    2019-05-02 at 15:18

    I was still having issues grabbing the keys because there was/is some issue with pgpkey.mit.edu. I found another thread on Stack Exchange where people had that problem and they were able to resolve it by using keyserver.ubuntu.com instead. Worked like a charm for me, so I thought I’d share it.

    Reply
  4. Pingback: Wordpress, nginx und SSL auf dem Raspberry Pi – Arttothink
  5. jfla says:
    2021-11-25 at 02:07

    I had the same issue but resolved it by upgrading the debian-archive-keyring package, which should contain the correct key for the backports repo.

    Reply
  6. Pingback: Installing GPG keys for Debian Backports – Debian9

Leave a Reply to Steven Buehler Cancel reply

Your email address will not be published. Required fields are marked *

           

Recent Comments

  • rolfje on Methode Buijs uitgelegd
  • LinkedIn is at Peak Enshittifaction – Will Chatham's Blog on Linked-In not really Opt-in?
  • Hans j on 1N4148 diode as RF switch
  • Roaming Rhonda on DLNA on OSX, done right
  • Frans on How to fix a Krups XN2001 Nespresso machine

Tags

Anonimatron Apple backup design DIY DRM eclipse environment Fun gmail google hacking hamradio Hardware helicopter iphone ipod iTunes Java Keynote maven modelling motorcycle music news opinion oracle osx photo photography programming repair review security Software Steve Jobs T-Mobile technology Time Machine Ubuntu usability Utilities vacation windows Workshop

Categories

  • Apple (105)
  • Divorce (1)
  • Electronics (3)
  • Fun (57)
  • Games (7)
  • Hardware (72)
  • Microsoft (18)
  • Racing (14)
  • Software (134)
  • Uncategorized (65)
  • Workshop (20)

Archives

Copyright © 2025 www.rolfje.com.

Powered by PressBook WordPress theme