Hi there,
I was trying to renew my certificate and I ran a few commands below:
Now my website is down, looks like that I could renew the certificate but something went wrong during the updates.
My domain is: tabledirect . com . au
I ran this command: sudo apt install certbot
It produced this output:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
python3-certbot-nginx python-certbot-doc
The following packages will be upgraded:
certbot
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/11.0 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
(Reading database … 139904 files and directories currently installed.)
Preparing to unpack …/certbot_0.31.0-1+ubuntu16.04.1+certbot+1_all.deb …
Failed to stop certbot.service: Unit certbot.service not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead …
Failed to stop certbot.service: Unit certbot.service not loaded.
dpkg: error processing archive /var/cache/apt/archives/certbot_0.31.0-1+ubuntu16.04.1+certb
ot+1_all.deb (–unpack):
subprocess new pre-removal script returned error exit status 5
certbot.service is a disabled or a static unit, not starting it.
Job for certbot.timer failed. See “systemctl status certbot.timer” and “journalctl -xe” for
details.
certbot.timer couldn’t start.
Errors were encountered while processing:
/var/cache/apt/archives/certbot_0.31.0-1+ubuntu16.04.1+certbot+1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
My web server is (include version): Amazon Lightsail
The operating system my web server runs on is (include version): Ubuntu 16
I can login to a root shell on my machine.
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
When I run certbot --version:
raceback (most recent call last):
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 655, in _build_mast
er
ws.require(requires)
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 963, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 854, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (certbot 0.31.0 (/usr/lib/python3/dist-packages), Requiremen
t.parse(‘certbot==0.28.0’))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 6, in
from pkg_resources import load_entry_point
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 3019, in
@_call_aside
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 3003, in _call_asid
e
f(*args, **kwargs)
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 3032, in _initializ
e_master_working_set
working_set = WorkingSet._build_master()
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 657, in _build_mast
er
return cls._build_from_requirements(requires)
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 670, in _build_from
_requirements
dists = ws.resolve(reqs, Environment())
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 849, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘certbot==0.28.0’ distribution was not found and is
required by the application
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies:
** certbot : Depends: python3-certbot (= 0.28.0-1+ubuntu16.04.1+certbot+4) but 0.31.0-1+ubunt**
u16.04.1+certbot+1 is installed
E: Unmet dependencies.
Thanks for your help!