On a relatively freshly installed Linux Mint 18.3, I've discovered that there is no /etc/apt/sources.list
file. This seems to cause no problems, but occasionally a warning pops up:
WARNING:root:could not open file '/etc/apt/sources.list'
(for example if I try to execute a command that does not exist in the command line).
AFAIU, on Linux Mint the standard sources are in /etc/apt/sources.list.d/official-package-repositories.list
.
Will everything work as exepcted without sources.list
? Is it normal to not have it? If not, any ideas how it could get removed? (The warning was accidentally noticed about a week or two after the system was installed.)
Is it better to ignore the warning or to create an empty /etc/apt/sources.list
, or are there better solutions?
I understand that I can just create an empty file and the warning will probably go away, but I want to understand how this happened on a newly installed Linux Mint 18.3, and if it could be a symptom of some problem (maybe there are more important files missing somewhere).
apt
shouldn't complain about that, it's standard for apt & Debianless file_does_not_exist
and less complains "No such file"? Maybe you should post an answer with the details.