Ubuntu 18.04.1 LTS Bionic Beaver Missing Entries in sources.list

by Christian Mohn · Read in about 2 min (368 words)

While setting up a new Ubuntu 18.04.1 LTS Bionic Beaver VM (which I will be using for a couple of upcoming projects using Grafana and InfluxDB, as well as Pi-Hole), I ran into a small issue where the /etc/apt/sources.list was close to empty:

fsociety@test:~$ cat /etc/apt/sources.list
deb bionic main
deb bionic-security main
deb bionic-updates main

That does seem a bit on the too scaled-down side, doesn’t it?

Turns out systems that are installed with the Ubuntu 18.04.1 LTS Bionic Beaver live server installer does not have all the normal Ubuntu repositories added to it. In fact, Universe, Multiverse and Restricted repositories are missing.

I don’t know if this is a bug that will be fixed, or an intentional change, but it means that a lot of packages you might need are not available for installation after completing the Ubuntu OS setup. And that is simply no fun at all.

Either way, I’ve hacked together my own version (basically I’ve just copied it from older releases) of a full sources.list file, and made it available as a gist.

This can easily downloaded into your Ubuntu 18.04.1 LTS Bionic Beaver system after a backup of the original one:

Backup the original /etc/apt/sources.list #

fsociety@test:~$ sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup

Download my updated /etc/apt/sources.list #

fsociety@test:~$ cd /etc/apt/
fsociety@test:~$ sudo wget

This should add your familiar repositories back, and enable installation of packages from the missing repositories, as well as the main repositories enabled by default. You can test it by running a simple apt-get update command:

sudo apt-get update
[sudo] password for fsociety:
Get:1 bionic-security InRelease [83.2 kB]
Hit:2 bionic InRelease
Get:3 bionic-updates InRelease [88.7 kB]
Get:4 bionic-updates/main amd64 Packages [398 kB]
Get:5 bionic-updates/main Translation-en [149 kB]
Get:6 bionic-updates/restricted amd64 Packages [7024 B]
Get:7 bionic-updates/restricted Translation-en [3076 B]
Get:8 bionic-updates/universe amd64 Packages [559 kB]
Get:9 bionic-updates/universe Translation-en [145 kB]
Get:10 bionic-updates/multiverse amd64 Packages [5716 B]
Get:11 bionic-updates/multiverse Translation-en [3176 B]
Fetched 1441 kB in 3s (532 kB/s)
Reading package lists... Done

And there you go, Universe, Multiverse and Restricted repositories are now available, in addition to default Main.

Happy days!

Ubuntu 18.04.1 LTS Bionic Beaver /etc/apt/sources.list gist

Post last updated on June 5, 2020: Get rid of Jumbotron HTML

About the author

Christian Mohn Profile Picture

Christian Mohn works as a Chief Technologist SDDC for Proact in Norway.

See his About page for more details, or find him on Twitter.