Sudo apt-get install python-certbot-nginx -> Unable to locate package python-certbot-nginx

Trying to install Let’s encrypt on:

Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

Following tutorial on https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

Get stuck here:
sudo apt-get install python-certbot-nginx
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package python-certbot-nginx

Any idea how to solve?

Thanks,
Björn

did you skip?
First, add the repository:
$sudo add-apt-repository ppa:certbot/certbot

Thanks rg305.

Ran $sudo add-apt-repository ppa:certbot/certbot
as per your recommendations.

Then sudo apt-get update -> still not working, output below, any other suggestions?

Reading package lists… Done
W: The repository ‘http://ppa.launchpad.net/certbot/certbot/ubuntu xenial Release’ does not have a Release file.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository ‘http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04 Release’ does not have a Release file.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository ‘http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial Release’ does not have a Release file.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/xenial/main/binary-amd64/Packages 403 Forbidden [IP: 112.124.140.210 80]
E: Failed to fetch http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04/Packages 403 Forbidden [IP: 112.124.140.210 80]
E: Failed to fetch http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu/dists/xenial/main/binary-i386/Packages 403 Forbidden [IP: 115.28.122.210 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
sudo apt-get install python-certbot-nginx
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package python-certbot-nginx

You need to talk to Digital Ocean

Have done some more research concurrently while waiting for feedback from the hosting company.

Additional actions I have taken are:

  1. Edited: /etc/apt/sources.lst.
    Now with the following information:

deb cdrom:[Ubuntu 16.04 LTS Xenial Xerus - Release amd64 (20160420.1)]/ xenial main restricted

deb Index of /ubuntu xenial main restricted universe multiverse
deb-src Index of /ubuntu xenial main restricted universe multiverse
deb Index of /ubuntu xenial-updates main restricted universe multiverse
deb-src Index of /ubuntu xenial-updates main restricted universe multiverse
deb Index of /ubuntu xenial-backports main restricted universe multiverse
deb-src Index of /ubuntu xenial-backports main restricted universe multiverse
deb Index of /ubuntu xenial-security main restricted universe multiverse
deb-src Index of /ubuntu xenial-security main restricted universe multiverse

deb Index of /ubuntu xenial-proposed main restricted universe multiverse

deb Index of /ubuntu xenial partner
deb-src Index of /ubuntu xenial partner

  1. Ran the following commands:
    apt-get clean
    apt-get update
    apt-get upgrade

No errors detected!

  1. Tried install certbot -> yielding te below output:
    sudo apt-get install python-certbot-nginx
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package python-certbot-nginx

To summarise: Still no luck.

Any advise or tips are always welcome!

Ok here’s a working solution:

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
apt-get purge python-virtualenv python3-virtualenv virtualenv
pip install virtualenv
mv /.pip/pip.conf /.pip/pip.conf.backup
sudo ./certbot-auto --no-self-upgrade --nginx

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