Certbot install failed in a incompatibility loop

I've been using an ubuntu 20 and certbot to generate cert previously. It's been working fine.

But few days ago, I accidentally deleted my cert under live and then in a nightmare.

I am unable to install certbot and generate cert again.

Both apt install and snap produced some errors that I unable to generate cert successfully.

I have removed everything ( unless something deep hidden ) because another attempt of reinstall.

my snap is not work. I snap install it says 'snap set certbot trust' required but i set certbot trust it says it not found. they are inter-related and hindered one another.

apt install not work also. always saying modules missing including import name IO, acme.magic_typing, etc.

Is there anyone could give me a pointer actually how I should work it out.

thanks.

There was no reason to delete and re-install Certbot after you damaged the directory(ies) used for its certificates. There are various ways to recover from that kind of problem. One of which is to restore from a backup but I'll assume you don't have one.

For Ubuntu do not use the apt install. I don't know why your install of that fails but the snap install is well supported on Ubuntu.

Carefully follow the instructions at: Certbot Instructions

Also see the "wildcard" section there if that's appropriate.

3 Likes