Apt-get Failed to fetch on debian jessie


#1

I’m taking over a server and running into some problems that seem to be related to trying to update certbot on debian from an ubuntu repo, but I may be wrong as I’m not an expert on apt.

My /etc/apt/sources.list.d/certbot-certbot-jessie.list contains two lines:
deb http://ppa.launchpad.net/certbot/certbot/ubuntu jessie main
# deb-src http://ppa.launchpad.net/certbot/certbot/ubuntu jessie main

When I run
sudo apt-get update
I get
W: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found

http://forums.debian.net/viewtopic.php?t=123416 suggests the problem may be because I’m attempting to install an ubuntu package on debian, but that’s what the certbot docs say to do:
https://certbot.eff.org/all-instructions/#debian-8-jessie-apache

What is best way to setup things so I can update certbot properly on debian 8 jessie ?

TIA


#2

Is certbot already installed from the PPA and you’re trying to update it? Or are you trying to install it now?


#3

It’s installed and I’m just trying to update it, or at a minimum configure things in apt so it will update when it needs to be updated.
# certbot -v
Root logging level set at 10
Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot version: 0.10.2
Arguments: [’-v’]
Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
Requested authenticator None and installer None
Single candidate plugin: * apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.configurator:ApacheConfigurator
Initialized: <certbot_apache.configurator.ApacheConfigurator object at 0x7fc7268c0850>
Prep: True
Selected authenticator <certbot_apache.configurator.ApacheConfigurator object at 0x7fc7268c0850> and installer <certbot_apache.configurator.ApacheConfigurator object at 0x7fc7268c0850>


#4

Certbot 0.10.2 isn’t the version from the Ubuntu PPA; it’s the version from Debian’s jessie-backports repository. If it was installed from jessie-backports, a normal apt-get upgrade will upgrade it to the latest version from there (which is currently 0.10.2, which you already have).

Check https://backports.debian.org/Instructions/ to confirm that you have jessie-backports enabled.

If you need a newer version than the one in jessie-backports, you can uninstall it and install certbot-auto instead (though note that you’ll have to set up your own renewal cron job then).

Since Ubuntu PPAs aren’t designed to work on Debian, I wouldn’t recommend trying to update it from there.


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.