I was just trying to install ADB and it returned the following error message:
W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
I then went into my sources GUI to enable the universe source list and noticed that all of my sources where unticked and nothing was listed. I tried to recheck them and reload my cache but it returned a error message everytime.

I then tried running sudo apt update
and it returned the same error message as the ADB installation. So I checked my actual sources folder and inside the folder there were two files, sources.list
and sources.save
. The .list
simply redirects me to the sources GUI and the .save
has a single source in it which is 'deb http://archive.ubuntu.com/ubuntu focal multiverse main'
.

I am a bit lost as to what can be done here. Did I accidentally wipe my sources list? Can it be restored? I do not recall playing with the sources/repositories at any point in the past week but I did run the command sudo du -sh /var/cache/apt
when trying to free up some space the other day and I also tried to backup my Ubuntu via Penguin Eggs which involved a bunch of console commands I did not admittedly fully understand.
If it can't be restored does this mean any applications I installed via it will no longer update?
Thank you for your help.