Certbot installation fails on Debian 9

After following https://backports.debian.org/Instructions/ and https://certbot.eff.org/lets-encrypt/debianstretch-other the command apt-get install certbot -t stretch-backports fails:

Der Wert »stretch-backports« ist für APT::Default-Release ungültig, da solch eine Veröffentlichung in den Paketquellen nicht verfügbar ist.
-bash: Der: Kommando nicht gefunden.

And the translated error message is:

»stretch-backports«  is invalid for APT::Default-Release as such a release is not available in the sources

Any idea what happens here?

1 Like

I have found the issue: The certbot documentation is outdated and needs to be updated: The new repository is buster-backports and not stretch-backports

1 Like

I think the Certbot instructions are correct, but the Debian Backports instructions are somewhat confusing because they are applicable to only the current stable version of Debian (10/Buster).

If you are on Debian 9/Stretch, you would instead add:

deb http://deb.debian.org/debian stretch-backports main

in which case, the Certbot instructions work just fine.

I don’t think that using buster-backports from Debian 9 is entirely safe or desirable, but I’m no expert on Debian packaging.

1 Like