LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-29-2018, 03:31 AM   #1
Hera314
LQ Newbie
 
Registered: Dec 2018
Posts: 1

Rep: Reputation: Disabled
How to Fix Error ¨The list of sources could not be read.¨


Hi there i wonder if anyone could help out with this query?

I accidentally managed to delete my software source now when I run the command line

sudo apt-get update I get the following error line.

E: Type ‘sudo’ is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.


Any help would be greatly appreciated.

Thanks.
 
Old 12-29-2018, 06:40 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,148

Rep: Reputation: 1166Reputation: 1166Reputation: 1166Reputation: 1166Reputation: 1166Reputation: 1166Reputation: 1166Reputation: 1166Reputation: 1166
Start by checking what’s in line 1 of /etc/apt/sources.list.
 
Old 12-29-2018, 06:45 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,612

Rep: Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366Reputation: 4366
https://askubuntu.com/questions/1240...t-repositories
 
Old 12-29-2018, 08:21 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Can you paste the output from the following command so that we can have a look at your software sources. Many thanks.

Code:
for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done
I would also suggest that, due to the diversity of Linux distros, you also tell us which Linux distro (and version) you are using. That will allow folk to give you better-targetted advice.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
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 01:14 PM
'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 09:17 AM
sources.list...no sources! phantom_cyph Fedora 4 10-16-2007 10:26 PM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 02:57 PM
Ubuntu Sources List! I need some great sources lists! Jengo Linux - Newbie 1 06-24-2005 05:50 PM

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

All times are GMT -5. The time now is 07:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration