Package 'python-certbot-nginx' has no installation candidate in Ubuntu

Dung Do Tien Mar 05 2022 47

Hello guys, I try to install cerbot ssl in Linux Ubuntu 20.04 by using the command:

sudo apt install python-certbot-nginx

But I got an exception Package 'python-certbot-nginx' has no installation candidate.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-certbot-nginx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python3-certbot-nginx
E: Package 'python-certbot-nginx' has no installation candidate

How can I pass it?

Have 1 answer(s) found.
  • K

    Kenneth Kristiansen Mar 05 2022

    You can read your log, they suggest you change from python-certbot-nginx to python3-certbot-nginx. You can run command below:

    sudo apt-get install python3-certbot-nginx

    And your issue will be solved.

Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close