I am looking for the best method to restore
/etc/apt/sources.list to default from the command line.
Is there no way to reference the source code of the package which generates this file or something like that? I want a trusted and version-independent way of restoring this file.
Solutions Ruled Out
Before you mark this as a duplicate, note that I have reviewed this question already. It is only applicable if you have the Ubuntu GUI available. This question is specific to the command line.
I have also reviewed this question where the accepted solution is someone pasted the contents of their
sources.list file. This is not an appropriate way to restore the file as the intentions of the person providing the file contents cannot be verified and the file is subject to change with new releases.
I checked out the generator at simplelinux.ch, but this is also not from Ubuntu so I do not plan to use it.