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.