Error: 'universe' invalid

I don’t have a domain yet. I’m trying to install certbot, following the official docs here (Apache on Ubuntu 18.04).

I’m stuck at this point

$ sudo add-apt-repository universe

Gives me:

Error: 'universe' invalid

Not sure how to continue?

1 Like

What’s the contents of the file /etc/apt/sources.list and in any file with the suffix .list under the directory /etc/apt/sources.list.d/?

1 Like

Below the contents of /etc/apt/sources.list

# deb buster main
deb buster main
# deb buster/updates main
deb buster/updates main
# deb buster-updates main
deb buster-updates main

/etc/apt/sources.list.d folder is empty.

That doesn’t look like an Ubuntu server to me - it looks like Debian Buster, in which case you can just install certbot from apt.

What does this say:

cat /etc/os-release
1 Like

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