Score:0

Install certbot ubuntu 21.10 unmet dependencies

ma flag

I am trying to install certbot on ubuntu server 21.10 with the following tutorial: https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04.

But when I run the following command:

sudo apt install certbot python3-certbot-apache

I get the following error message:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 certbot : Depends: python3-certbot (= 1.12.0-2) but it is not going to be installed
 python3-zope.component : Depends: python3-zope.hookable but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I have tried the command:

apt --fix-broken install

But this does not seem to fix my issue.

I am not sure why I am getting this error message. Help would be appreciated.

Score:0
ar flag

You're running an unsupported release of Ubuntu. That means they've removed the packages from repositories, and no further updates will be made.

Do not run unsupported Ubuntu releases unless you know how to do this in a sane manner (e.g. use archive.ubuntu.com).

Furthermore, you probably want the LTS release on a server.

Davidoffo avatar
ma flag
Thank you for the explanation. I will look into updating to an LTS release.
Score:0
bh flag

You should install certbot as snap package instead. I've never had problems with it.

sudo snap install core; sudo snap refresh core

sudo snap install --classic certbot

sudo ln -s /snap/bin/certbot /usr/bin/certbot

Then you could do something like this if you are running apache.

sudo certbot --apache
Davidoffo avatar
ma flag
This worked for me thank you!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.