Unable to install python-certbot-apache

Trying to install python-certbot-apache on ubuntu server. Python 2.7.12 is installed. The command to install it is now working. Is the apt-get command unable to detect python 2.7? Please suggest solution.

Please fill out the fields below so we can help you better.

My domain is:

I ran this command:
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache

It produced this output:
root@ip-172-31-88-10:~# sudo apt-get install python-certbot-apache
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python-certbot-apache : Depends: certbot (>= 0.17.0~) but it is not going to be installed
Depends: python-acme but it is not going to be installed
Depends: python-augeas but it is not going to be installed
Depends: python-certbot but it is not going to be installed
Depends: python-mock but it is not going to be installed
Depends: python-pkg-resources but it is not going to be installed
Depends: python-zope.component but it is not going to be installed
Depends: python-zope.interface but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
E: Unable to correct problems, you have held broken packages.

Python is installed
root@ip-172-31-88-10:~# python
Python 2.7.12 (default, Sep 2 2017, 08:29:05)
[GCC 5.4.0 20160609] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

My web server is (include version):
apache2

The operating system my web server runs on is (include version):
ubuntu 16.0.4

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):
Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

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