Unable to locate package python-certbot-apache on Ubuntu 14.04 AWS
Solution 1
I had the same problem, although if you remove sudo
at the beginning so it reads
apt-get install python-certbot-apache
It gives you a hint to the more up to date version.
So, it should do it if you use
sudo apt install python3-certbot-apache
sudo apt install -y certbot python3-certbot-apache
Solution 2
On most recent Ubuntu releases, the Certbot and its Apache plugin can be installed with:
sudo apt install -y certbot python3-certbot-apache
(note the "python3", whereas most resources only mention "python")
Solution 3
Certbot doesn't support the apt-get installation on Ubuntu 14 anymore. But you still can install. To do it, log in to the server via SSH and run:
wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot
sudo chown root /usr/local/bin/certbot
sudo chmod 0755 /usr/local/bin/certbot
Then use certbot
as usual.
Source: https://certbot.eff.org/lets-encrypt/pip-apache
If you get an error like CryptographyDeprecationWarning: Support for your Python version is deprecated
, then:
# Remove the Certbot virtual environment
rm -r /opt/eff.org/certbot/
# Install a new version of Python 2.7
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xfz Python-2.7.18.tgz
cd Python-2.7.18/
sudo ./configure --prefix /usr/local/lib/python2.7.18
sudo make && sudo make install
cd ..
rm -r Python-2.7.18.tgz Python-2.7.18
# And run Certbot once with the new Python:
PATH=/usr/local/lib/python2.7.18/bin:$PATH certbot renew
Then run certbot
as usual.
Solution 4
I had the same problem, although if you remove sudo
at the beginning so it reads
apt-get install python-certbot-apache
It gives you a hint to the more up to date version.
So, it should do it if you use
sudo apt install python3-certbot-apache
Related videos on Youtube
![Sanjay Prajapati](https://lh5.googleusercontent.com/-GOEv7Py42lU/AAAAAAAAAAI/AAAAAAAAAAA/ACHi3rdNFNYgc1N6IAHAx_mXtMphoHR-rA/mo/photo.jpg?sz=256)
Sanjay Prajapati
Updated on January 17, 2022Comments
-
Sanjay Prajapati over 2 years
I have tried installing certbot SSL certificate on apache. Following command I performed.
- sudo add-apt-repository ppa:certbot/certbot
- sudo apt-get update
- sudo apt-get install python-certbot-apache
after running 3rd command I get below error. "Unable to locate package python-certbot-apache"
if anyone can help me sort this out, would be great.
-
Dilip Hirapara over 4 yearscheck this. certbot.eff.org/lets-encrypt/ubuntuother-apache
-
Sanjay Prajapati over 4 yearsis this will work on AWS ip and my domain host is goDaddy? @Laravel
-
Dilip Hirapara over 4 yearsYes, it'll work make sure to select the right option like apache on ubuntu.
-
ddruganov over 3 yearsthis should be the accepted answer, thank you so much
-
empugandring about 2 yearswhen wget command, ERROR: cannot verify dl.eff.org's certificate. Issued certificate has expired.