I've tried to reinstall Certbot after upgrading to Ubuntu 20.10. The installed version from ubuntus repo errors as below.
I've already deleted the virtualenv environment with:
rm -r /opt/eff.org
And any attempt to use certbot-auto to recreate the virtualenv fails as below.
I've tried to install from the certbot ppa but there is no focal release.
My domain is:
trying to create one
I ran this command:
$ sudo ./certbot-auto
It produced this output:
Error: couldn't get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 6, in
from certbot.main import main
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py", line 5, in
import logging.handlers
File "/usr/lib/python2.7/logging/init.py", line 26, in
import sys, os, time, cStringIO, traceback, warnings, weakref, collections
File "/usr/lib/python2.7/weakref.py", line 14, in
from _weakref import (
ImportError: cannot import name _remove_dead_weakref
My web server is (include version):
The operating system my web server runs on is (include version):
Ubuntu 20.10 FOCAL
My hosting provider, if applicable, is:
Self hosted
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):
No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 0.40.0