Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
29
rated 0 times [  29] [ 0]  / answers: 1 / hits: 11813  / 1 Year ago, mon, november 28, 2022, 6:42:37

This is more of a curiosity question as I try to get a better understanding of apt and package management.



I'm seeing that in my /etc/apt/ and /etc/apt/sources.list.d/ folders I have very or sometimes identical files which have the extension of sources.list, sources.list.distUpgrade, sources.list.save, and so on.



What's the point of these duplicate or similar files?



sources.list and sources.list.save in /etc/apt/ seem to be identical but sources.list.distUpgrade shows quantal instead of raring for most stuff (I probably first installed quantal).



On the other hand, in the case of google-talkplugin.list and google-talkplugin.listUpgrade in /etc/apt/sources.list.d/ the content of the files seems to be completely identical.



Didn't find much in Google searches. I reviewed the sources.list manpage but it didn't talk much about it.



Also noticed this article where a bug related to the extensions was noted for 10.10


More From » apt

 Answers
2

I am not sure about sources.list.distUpgrade, but the sources.list.save file is a backup of the sources.list file. I know from personal experience (about 5 minutes ago) that the sources.list.save file is extremely important after attempting to add a repository. If software center stops working correctly (EX: closing right after starting) then you need to replace the current sources.list file with the sources.list.save file.



To do this, open a new terminal (CTRL+ALT+T) and type the command



sudo cp /etc/apt/sources.list.save /etc/apt/sources.list


and then



sudo apt-get update


This should fix the corrupt sources.list as long as sources.list.save exists in the /etc/apt/ directory.



Simply put, sources.list.save is just a backup file.


[#28863] Tuesday, November 29, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eeperant

Total Points: 39
Total Questions: 106
Total Answers: 117

Location: Finland
Member since Sat, Dec 5, 2020
3 Years ago
;