After installation of Debian 10 from DVD, my system couldn’t be updated or any package installed as the sources.list was referring to DVD mount store as packages repository. I had to manually update sources.list file with the correct list of URLs where packages can be downloaded from and security updates location.

debian 10

In this guide, we will see how you can add Official Debian 10 apt repositories to the sources.list file. Here is how my old file looked like.

$ cat /etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux testing _Buster_ - Official Snapshot amd64 DVD Binary-1 20190527-04:04]/ buster contrib main

deb cdrom:[Debian GNU/Linux testing _Buster_ - Official Snapshot amd64 DVD Binary-1 20190527-04:04]/ buster contrib main

deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib

I updated the file to look like this:

deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib

See below screenshot.

debian 10 repositories

When done, update your APT index.

$ sudo apt update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
63 packages can be upgraded. Run 'apt list --upgradable' to see them.

Upgrade your system packages.

sudo apt upgrade -y

Try install other packages, e.g my compulsory list comprises of:

sudo apt install bash-completion wget curl vim telnet -y

You now have correct sources.list file on your Debian 10 system. Install your favorite work tools to best delivery.

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here