How to Edit /etc/apt/sources.list in Ubuntu
In Ubuntu the /etc/apt/source.list file is a configuration file for Advance Packaging Tool (APT). This file saves all URLs for remote repositories from where software packages and applications are installed.
When you install any software using the apt install or apt-get install then the apt tool looks inside the file /etc/apt/sources.list for the available remote repository links. And then it searches for the required software from that available remote repository and starts the download and installs it.