Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
/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.
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
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.