• The sources.list file contains a list of sources from which we can download indexes of binary and source packages.
  • I had to manually update sources.list file with the correct list of URLs where packages can be downloaded from and security updates location.
  • Whoa, my bad bro! I totally spaced out and provided the sources.list for Debian 11 and not 12. Good thing you have your wits about you, dude.
  • They should be located at /etc/apt/sources.list. You can download these sources list’s direct to your server using the wget -p command.
  • In particular, we use a command substitution to find and list all [ -f ]ile[ -type ] filesystem objects in /etc/apt/sources.list* , storing them in $aptfile one by one.
  • The sources.list file is a plain-text file that contains a list of repositories from which your Linux distribution can fetch software packages and updates.
  • In Ubuntu, APT will know what repository to access and what packages to download primarily based on your sources.list settings.
  • Then, replace the content of the /etc/apt/sources.list file with the default sources list provided above. Finally, you should run the apt-get update command.
  • On ubuntu, in the /etc/apt/, there are two files: sources.list and sources.list.distUpgrade. But I only know they are used to update system.
  • # /etc/apt/sources.list : deb http://ftp.au.debian.org/debian/ stretch main contrib non-free deb-src http://ftp.au.debian.org/debian/ stretch main contrib non-free.