Certbot deleted from Ubuntu, can't reinstall

He did that like 10 posts ago:

$ vim /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu xenial universe multiverse

it’s clearly in the repositories but this is outside my area of knowledge.

That is to say, the problem is clearly in the repos

This may be overkill, but you could add any these that are missing:
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse

2 Likes

You don’t need all of those repositories – for example, multiverse is for legally problematic software, and not everyone wants -backports – but you need many of them.

In particular, the most important packages are in main, and with only that one line, you’re installing zero security or non-security updates.

try:
sudo apt-get dist-upgrade

I installed certbot. Many thanks to you both. You are awesome.

how did you get it installed?

Run “sudo apt upgrade” or, if necessary, “sudo apt full-upgrade”, if you haven’t yet. There are probably dozens of updates that want to be installed.

According to the wisdom that both of you laid out, I added the repos back (I don’t know how I lost them). Then I did

apt update
apt upgrade
apt autoremove
apt autoclean
apt install certbot
apt install python-certbot-apache

and now my certficate is renewed! Many thanks.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.