LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ¿Sources.list or Source.list? (https://www.linuxquestions.org/questions/linux-newbie-8/%BFsources-list-or-source-list-4175633464/)

129 07-06-2018 06:21 PM

¿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.

hydrurga 07-06-2018 06:25 PM

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.

129 07-07-2018 08:35 AM

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.

129 07-07-2018 08:50 AM

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.

hazel 07-07-2018 09:08 AM

/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.

129 07-08-2018 10:02 AM

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

hydrurga 07-08-2018 10:16 AM

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

hazel 07-08-2018 11:33 AM

Quote:

Originally Posted by 129 (Post 5877031)
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

https://www.linuxquestions.org/quest...ms-4175629183/

129 07-08-2018 08:47 PM

Thanks for the link hazel.

129 07-08-2018 08:50 PM

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

hazel 07-09-2018 01:57 AM

Quote:

Originally Posted by 129 (Post 5877187)
please, I do not know how to echo the file, and I do not know what that command means.

regards

Echo is just a command that displays its argument on the screen. It's often used in scripts to display the current value of a variable but here Hydrurga is also using it to pretty-up the output and make it more informative. So echo file will print the word "file", echo $i will write out the current filename, cat $i will list the contents of the file, and echo "====" will print a double line at the end of each listing.

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.

hydrurga 07-09-2018 08:19 AM

Quote:

Originally Posted by 129 (Post 5877187)
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

All you need to do is copy the whole command I gave you into your Terminal window and then paste the output here.

129 07-10-2018 10:21 AM

1 Attachment(s)
Quote:

Originally Posted by hydrurga (Post 5877294)
All you need to do is copy the whole command I gave you into your Terminal window and then paste the output here.

Okay, now ready, here are the results

129 07-10-2018 10:26 AM

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.

129 07-10-2018 10:34 AM

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.