LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-06-2018, 06:21 PM   #1
129
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Rep: Reputation: Disabled
Talking ¿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.
 
Old 07-06-2018, 06:25 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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.
 
1 members found this post helpful.
Old 07-07-2018, 08:35 AM   #3
129
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-07-2018, 08:50 AM   #4
129
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-07-2018, 09:08 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,680
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
/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.
 
1 members found this post helpful.
Old 07-08-2018, 10:02 AM   #6
129
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-08-2018, 10:16 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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
 
1 members found this post helpful.
Old 07-08-2018, 11:33 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,680
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Quote:
Originally Posted by 129 View Post
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/
 
1 members found this post helpful.
Old 07-08-2018, 08:47 PM   #9
129
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks for the link hazel.

Last edited by 129; 07-08-2018 at 08:52 PM.
 
Old 07-08-2018, 08:50 PM   #10
129
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Original Poster
Rep: Reputation: Disabled
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

Last edited by 129; 07-08-2018 at 09:00 PM.
 
Old 07-09-2018, 01:57 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,680
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Quote:
Originally Posted by 129 View Post
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.

Last edited by hazel; 07-09-2018 at 01:58 AM.
 
1 members found this post helpful.
Old 07-09-2018, 08:19 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by 129 View Post
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.
 
1 members found this post helpful.
Old 07-10-2018, 10:21 AM   #13
129
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by hydrurga View Post
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
Attached Thumbnails
Click image for larger version

Name:	Results.jpg
Views:	16
Size:	83.3 KB
ID:	28074  
 
Old 07-10-2018, 10:26 AM   #14
129
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-10-2018, 10:34 AM   #15
129
LQ Newbie
 
Registered: Jun 2018
Posts: 14

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Type 'sudo' is not known on line 52 in source list /etc/apt/sources.list How to resolve? kumarvivekyours Ubuntu 2 06-25-2018 03:57 AM
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list 221B Linux - Newbie 6 09-07-2017 12:14 PM
E:Malformed line 64 in source list /etc/apt/sources.list (URI parse) Help Please PacerguyDon Linux - Software 2 11-14-2012 11:49 AM
E: Type '<HTML>' is not known on line 1 in source list /etc/apt/sources.list.d/conkyh bojan661 Linux - Newbie 4 05-18-2012 09:59 AM
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of vsssuccess@gmail.com Linux - Desktop 1 11-17-2010 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration