-1

Ubuntu 17.

I've tried this:

sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx # doesn't exist

The error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python-certbot-nginx

update:

note that http:\\/\\/ is meant to meant "http://"

this doesn't work:

$ sudo apt-get update
Hit:1 http:\\/\\/ppa.launchpad.net/certbot/certbot/ubuntu yakkety InRelease
0% [1 InRelease gpgv 24.3 kB] [Connecting to mirrors.digitalocean.com (198.199.99.226
Hit:3 https://deb.nodesource.com/node_6.x yakkety InRelease                          
Ign:2 http:\\/\\/packages.erlang-solutions.com/debian yakkety InRelease                  
Ign:5 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety InRelease                  
Hit:4 http:\\/\\/packages.erlang-solutions.com/debian yakkety Release                    
Ign:7 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety-updates InRelease
Ign:8 http:\\/\\/security.ubuntu.com/ubuntu yakkety-security InRelease
Err:9 http:\\/\\/security.ubuntu.com/ubuntu yakkety-security Release
  404  Not Found [IP: 91.189.88.162 80]
Ign:10 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety-backports InRelease
Err:11 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety Release
  404  Not Found
Err:12 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety-updates Release
  404  Not Found
Err:13 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety-backports Release
  404  Not Found
Reading package lists... Done
E: The repository 'http:\\/\\/security.ubuntu.com/ubuntu yakkety-security Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http:\\/\\/mirrors.digitalocean.com/ubuntu yakkety Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http:\\/\\/mirrors.digitalocean.com/ubuntu yakkety-updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http:\\/\\/mirrors.digitalocean.com/ubuntu yakkety-backports Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

$ 

$ sudo apt-get install software-properties-common

Reading package lists... Done
Building dependency tree       
Reading state information... Done
software-properties-common is already the newest version (0.96.24.7.2).
The following packages were automatically installed and are no longer required:
  python-acme python-certbot python-cffi-backend python-chardet
  python-configargparse python-configobj python-cryptography python-dialog
  python-enum34 python-funcsigs python-idna python-ipaddress python-mock
  python-ndg-httpsclient python-openssl python-parsedatetime python-pbr
  python-psutil python-pyasn1 python-pyicu python-requests python-rfc3339 python-six
  python-tz python-urllib3 python-zope.component python-zope.event
  python-zope.hookable python-zope.interface
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

$ 

$ sudo add-apt-repository ppa:certbot/certbot

 This is the PPA for packages prepared by Debian Let's Encrypt Team and backported for Ubuntu(s).
 More info: https://launchpad.net/~certbot/+archive/ubuntu/certbot
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmp53cbahkq/pubring.gpg' created
gpg: /tmp/tmp53cbahkq/trustdb.gpg: trustdb created
gpg: key 8C47BE8E75BCA694: public key "Launchpad PPA for certbot" imported
gpg: Total number processed: 1
gpg:               imported: 1
OK

$ $ sudo apt-get update
$: command not found

$ sudo apt-get update  
Hit:4 http:\\/\\/ppa.launchpad.net/certbot/certbot/ubuntu yakkety InRelease              
Ign:1 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety InRelease                  
Ign:2 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety-updates InRelease          
Ign:3 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety-backports InRelease        
Err:5 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety Release                    
  404  Not Found
Err:6 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety-updates Release            
  404  Not Found
Err:7 http:\\/\\/lon1.mirrors.digitalocean.com/ubuntu yakkety-backports Release          
  404  Not Found
Ign:9 http:\\/\\/security.ubuntu.com/ubuntu yakkety-security InRelease                   
Hit:10 https://deb.nodesource.com/node_6.x yakkety InRelease                         
Ign:8 http:\\/\\/packages.erlang-solutions.com/debian yakkety InRelease       
Err:11 http:\\/\\/security.ubuntu.com/ubuntu yakkety-security Release         
  404  Not Found [IP: 91.189.91.23 80]
Hit:12 http:\\/\\/packages.erlang-solutions.com/debian yakkety Release
Reading package lists... Done
E: The repository 'http:\\/\\/mirrors.digitalocean.com/ubuntu yakkety Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http:\\/\\/mirrors.digitalocean.com/ubuntu yakkety-updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http:\\/\\/mirrors.digitalocean.com/ubuntu yakkety-backports Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http:\\/\\/security.ubuntu.com/ubuntu yakkety-security Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

$ 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
3
  • 1
    Questions about Ubuntu problems should be asked on askubuntu.com
    – Rob
    Apr 6 '18 at 10:36
  • Could you add the content of /etc/apt/sources.list to your question? It seems there is something wrong there..
    – eKKiM
    Apr 6 '18 at 11:36
  • 1
    I'm voting to close this question as off-topic because this question belongs to askubuntu.com. Apr 9 '18 at 1:56
1

On Ubuntu 17.04 try the following:

$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-nginx 
5
  • have you tried that just now?
    – Wamaadi
    Apr 6 '18 at 10:43
  • I tried this in the past..
    – eKKiM
    Apr 6 '18 at 10:45
  • I don't need outdated info, see my update
    – Wamaadi
    Apr 6 '18 at 10:48
  • ... mr. nice guy...
    – frupfrup
    Apr 6 '18 at 11:00
  • And it still works.. However, after you updated your post, there seems to be something else wrong with your sources list. Please add the content of /etc/apt/sources.list
    – eKKiM
    Apr 6 '18 at 11:37
1

If you have enabled "universe" for standard ubuntu repository: deb http://archive.ubuntu.com/ubuntu/ artful universe you don't need to add additional ppa.

$ apt show certbot
Package: certbot
Version: 0.17.0-2
Priority: extra
Section: universe/web
Source: python-certbot
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
4
  • No command 'deb' found, did you mean: .....
    – Wamaadi
    Apr 6 '18 at 10:50
  • ok, after you've enabled it, what's next?
    – Wamaadi
    Apr 6 '18 at 10:54
  • The deb is not a command but a line in /etc/apt/sources.list. Apr 6 '18 at 11:08
  • actually, I'm on Ubuntu 16
    – Wamaadi
    Apr 6 '18 at 14:26
0

Why don't you use the official site and look for the instructions?

https://certbot.eff.org/all-instructions/

There are listed several operating systems...

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.