¿Sources.list or Source.list?
Hello to all the community, I know that the sources.list is used for administration, update, downloads, installation of programs, among others;
that to access it you need to put the command: gedit /etc/apt/sources.list. in the terminal (I access from the root terminal) But there is another command that is the gedit /etc/list/sources.list and I get an empty gedit file with nothing inside, totally blank, but if you use this command: gedit /etc/apt/sources.list and it aprece with the repositories that my version of debian needs. But my doubt is that when I enter gedit /etc/list/sources.list, I should have something written, commands, etc., I'm not worried about this since I have problems to solve on my computer. My version is Canaima3.0, a software based on debian. I await your answers Google translator, sorry for the mistakes you may have. |
Hi 129, and welcome to LQ.
As far as I know, there is no file named /etc/list/sources.list - where did you hear about that? The correct principal sources file for Debian is, as you say, /etc/apt/sources.list, although other sources files may also exist in the /etc/apt/sources.list.d directory. |
I do not know where I got that from, thanks for the clarification on /etc/apt/sources.list.
But what should contain the /etc/apt/sources.list.d ?, I try to open it with the following command in console gedit /etc/apt/sources.list.d and he tells me it's a directory. |
And I do not know how to access it, since every time I want to delete a broken synaptic package manager file, called software center, this appears:
N: Ignoring file 'cisofy-lynis.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'google-chrome.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Sub-process / usr / bin / dpkg reurned an error code (1) I have researched, but I have not known how to look, since I do not know anything about computers and I am new. Maybe what I have researched has not been enough to resolve this, Regards. |
/etc/apt/sources.list.d is the directory where you put any additional sources lists that you want to use, so as not to get them mixed up with the official ones. Sometimes there is a piece of non-standard software that isn't in any of the official repos but that is available in .deb format. Putting the url for that software into /etc/apt/sources.list.d is one way to ensure that this gets updated regularly. But it's quite a dangerous thing to do. There was a thread recently in which a user had got her apt system completely messed up by putting too many non-standard repos in that directory.
Incidentally, the trend in Linux over the years has been to reinforce or replace big, single configuration files (/etc/foo.conf) with configuration directories (/etc/foo.conf.d) containing several smaller, more specific files that can be added by the local administrator. If you look in the /etc directory, you'll see several other examples. |
Thanks for the information and the clarification, it helped me a lot, and I saw the examples and they are many, but you could tell me the name of the thread, it is that I am interested, to see what I can learn. Thank you very much for answering.
Maybe I can find the solution to my problem in that thread. regards |
Why don't we try solving it here?
Please paste the output from the following command (within CODE tags - see the # symbol in LQ's advanced editor - if you don't know what that means then ask): Code:
for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done |
Quote:
|
Thanks for the link hazel.
|
Hello hydrurga, it's okay, let's solve this problem here, please, I do not know how to echo the file, and I do not know what that command means.
regards |
Quote:
In future, when you see commands in a script that you don't understand, just try them out at the terminal. It's the best way of finding out how the script works. |
Quote:
|
1 Attachment(s)
Quote:
|
The first thing that appears in the image are the repositories of this version, which is Canaima 3.0.
Thanks for the help and clarification of what that command means. |
The files that appear in the results are the same ones that appear when I try to update or install files, and it tells me that I have a dependency problem that I have to solve, I do not know if that helps in anything, but it must mean something.
|
All times are GMT -5. The time now is 02:46 AM. |