Can't install certbot on Ubuntu 16.04.5 LTS.
I added universe and ppa:certbot/certbot PPA as in documentation:
$ sudo apt-get update $ sudo apt-get install software-properties-common $ sudo add-apt-repository universe $ sudo add-apt-repository ppa:certbot/certbot $ sudo apt-get update
it says:
The following packages have unmet dependencies:
sudo apt install certbot certbot : Depends: python3-certbot (= 0.31.0-1+ubuntu16.04.1+certbot+1) but it is not going to be installed mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
1st dependeny is python3-certbot. We have 2 versions of python installed 2.7 and 3. Primary used python is 2.7.
These are installed packages:
apt list --installed | grep python python/xenial-updates,now 2.7.12-1~16.04 amd64 [installed,automatic] python-all/xenial-updates,now 2.7.12-1~16.04 amd64 [installed,automatic] python-all-dev/xenial-updates,now 2.7.12-1~16.04 amd64 [installed,automatic] python-apt/xenial-updates,now 1.1.0~beta1ubuntu0.16.04.2 amd64 [installed,automatic] python-apt-common/xenial-updates,xenial-updates,now 1.1.0~beta1ubuntu0.16.04.2 all [installed] python-dev/xenial-updates,now 2.7.12-1~16.04 amd64 [installed] python-minimal/xenial-updates,now 2.7.12-1~16.04 amd64 [installed,automatic] python-pip/xenial-updates,xenial-updates,now 8.1.1-2ubuntu0.4 all [installed] python-pip-whl/xenial-updates,xenial-updates,now 8.1.1-2ubuntu0.4 all [installed,automatic] python-pkg-resources/xenial,xenial,now 33.1.1-1+certbot~xenial+1 all [installed,automatic] python-pycurl/xenial,now 7.43.0-1ubuntu1 amd64 [installed,automatic] python-setuptools/xenial,xenial,now 33.1.1-1+certbot~xenial+1 all [installed,automatic] python-software-properties/xenial-updates,xenial-updates,now 0.96.20.8 all [installed] python-wheel/xenial,xenial,now 0.29.0-1 all [installed,automatic] python2.7/xenial-updates,xenial-security,now 2.7.12-1ubuntu0~16.04.4 amd64 [installed,automatic] python2.7-dev/xenial-updates,xenial-security,now 2.7.12-1ubuntu0~16.04.4 amd64 [installed,automatic] python2.7-minimal/xenial-updates,xenial-security,now 2.7.12-1ubuntu0~16.04.4 amd64 [installed,automatic] python3/xenial,now 3.5.1-3 amd64 [installed] python3-apport/xenial-updates,xenial-updates,xenial-security,xenial-security,now 2.20.1-0ubuntu2.18 all [installed] python3-apt/xenial-updates,now 1.1.0~beta1ubuntu0.16.04.2 amd64 [installed] python3-asn1crypto/xenial,xenial,now 0.22.0-2+ubuntu16.04.1+certbot+1 all [installed,automatic] python3-certifi/xenial,xenial,now 2017.4.17-2+ubuntu16.04.1+certbot+1 all [installed,automatic] python3-cffi-backend/xenial,now 1.10.0-0.1+ubuntu16.04.1+certbot+1 amd64 [installed,automatic] python3-chardet/xenial,xenial,now 3.0.4-1+ubuntu16.04.1+certbot+2 all [installed] python3-commandnotfound/xenial-updates,xenial-updates,now 0.3ubuntu16.04.2 all [installed] python3-cryptography/xenial,now 1.9-1+ubuntu16.04.1+certbot+2 amd64 [installed,automatic] python3-dbus/xenial,now 1.2.0-3 amd64 [installed] python3-debian/xenial,xenial,now 0.1.27ubuntu2 all [installed] python3-dev/xenial,now 3.5.1-3 amd64 [installed] python3-distupgrade/xenial-updates,xenial-updates,now 1:16.04.26 all [installed] python3-gdbm/xenial,now 3.5.1-1 amd64 [installed] python3-gi/xenial,now 3.20.0-0ubuntu1 amd64 [installed] python3-idna/xenial,xenial,now 2.5-1+ubuntu16.04.1+certbot+1 all [installed,automatic] python3-minimal/xenial,now 3.5.1-3 amd64 [installed] python3-newt/xenial,now 0.52.18-1ubuntu2 amd64 [installed] python3-openssl/xenial,xenial,now 17.3.0-1~0+ubuntu16.04.1+certbot+1 all [installed,automatic] python3-pip/xenial-updates,xenial-updates,now 8.1.1-2ubuntu0.4 all [installed] python3-pkg-resources/xenial,xenial,now 33.1.1-1+certbot~xenial+1 all [installed] python3-problem-report/xenial-updates,xenial-updates,xenial-security,xenial-security,now 2.20.1-0ubuntu2.18 all [installed] python3-pycurl/xenial,now 7.43.0-1ubuntu1 amd64 [installed] python3-requests/xenial,xenial,now 2.18.1-1+ubuntu16.04.1+certbot+1 all [installed,automatic] python3-setuptools/xenial,xenial,now 33.1.1-1+certbot~xenial+1 all [installed] python3-six/xenial,xenial,now 1.11.0-1+ubuntu16.04.1+certbot+1 all [installed] python3-software-properties/xenial-updates,xenial-updates,now 0.96.20.8 all [installed] python3-systemd/xenial,now 231-2build1 amd64 [installed] python3-update-manager/xenial-updates,xenial-updates,now 1:16.04.15 all [installed] python3-urllib3/xenial,xenial,now 1.21.1-1+ubuntu16.04.1+certbot+1 all [installed,automatic] python3-wheel/xenial,xenial,now 0.29.0-1 all [installed,automatic] python3.5/xenial-updates,xenial-security,now 3.5.2-2ubuntu0~16.04.5 amd64 [installed] python3.5-dev/xenial-updates,xenial-security,now 3.5.2-2ubuntu0~16.04.5 amd64 [installed,automatic] python3.5-minimal/xenial-updates,xenial-security,now 3.5.2-2ubuntu0~16.04.5 amd64 [installed]
2nd dependency is mysql-server-5.7, but we have already installed mariaDB which uses mysql-server-core-5.7 package. This is mysql package list:
apt list --installed | grep mysql libdbd-mysql-perl/xenial-updates,xenial-security,now 4.033-1ubuntu0.1 amd64 [installed,auto-removable] libmysqlclient-dev/xenial-updates,xenial-security,now 5.7.25-0ubuntu0.16.04.2 amd64 [installed] libmysqlclient20/xenial-updates,xenial-security,now 5.7.25-0ubuntu0.16.04.2 amd64 [installed,automatic] mysql-client-5.7/xenial-updates,xenial-security,now 5.7.25-0ubuntu0.16.04.2 amd64 [installed,automatic] mysql-client-core-5.7/xenial-updates,xenial-security,now 5.7.25-0ubuntu0.16.04.2 amd64 [installed,automatic] mysql-common/xenial-updates,xenial-updates,xenial-security,xenial-security,now 5.7.25-0ubuntu0.16.04.2 all [installed,automatic] mysql-server/xenial-updates,xenial-updates,xenial-security,xenial-security,now 5.7.25-0ubuntu0.16.04.2 all [installed] mysql-server-core-5.7/xenial-updates,xenial-security,now 5.7.25-0ubuntu0.16.04.2 amd64 [installed,auto-removable]
I can't reinstall mysql or python as it's working server. We just want to migrate from paid certificates to letsencrypt.