LinuxQuestions.org
Visit Jeremy's Blog.
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 09-03-2017, 02:59 PM   #1
221B
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Rep: Reputation: Disabled
Unhappy E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list


hi, I'm totally new to linux.

running linux mint sonya


when trying to open synaptic i ran into an error regarding 'sudo'


E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.


tried getting update and unable running into same error in terminal.

tried searching for issue and found several similar issues but none exactly like mine and most regarding 'mono-xamarin.list'

i am not sure how to fix this. can anyone help me? i am super new and still not sure how to even use the terminal or anything.

thanks for your help and patience with me.
 
Old 09-03-2017, 05:35 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware, Ubuntu
Posts: 10,094

Rep: Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369
Quote:
E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list
That would seem to indicate that you have 'sudo' on the first line of your sources.list and I don't know why you would have that.
 
Old 09-03-2017, 08:18 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 18,991
Blog Entries: 28

Rep: Reputation: 6070Reputation: 6070Reputation: 6070Reputation: 6070Reputation: 6070Reputation: 6070Reputation: 6070Reputation: 6070Reputation: 6070Reputation: 6070Reputation: 6070
What was the exact command you entered?
 
Old 09-03-2017, 08:32 PM   #4
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Welcome to LQ!!!
Can you post at least the first line of that file (since it complains about it)
Also maybe file timestamps, as a clue to when the 'badness' happened
(stat or ls with switches; see man; also the .d but ls needs -da for that)
There's GUI ways to see dates, but Idk GUI (like you don't CLI)

Is this a new install? (Reinstall?)
Ever done anything 'awful' like: sudo echo sudo >ThatFile?

I realize you probably just click on the GUI to run it; you probably tried cli: apt update
Since you've done good web-searching, look for ways to: clean 'bad repositories'
https://askubuntu.com/questions/9696...ce-list-update
(My ISP's login page once got dumped into something like this!!!)

Have patience&persistence!!! The hundreds of LQ volunteers will 'get you thru this'

Last edited by !!!; 09-03-2017 at 09:19 PM.
 
Old 09-05-2017, 08:32 PM   #5
221B
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
What was the exact command you entered?
I first ran into the issue when trying to open Synaptic. After entering my pswd and synaptic opens, I am immediately given an error box with

E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.


Then, I opened terminal and tried:

sudo apt-get update




To which I received:

E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list
E: The list of sources could not be read.
 
Old 09-05-2017, 08:57 PM   #6
221B
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by !!! View Post
Welcome to LQ!!!
Can you post at least the first line of that file (since it complains about it)
Also maybe file timestamps, as a clue to when the 'badness' happened
(stat or ls with switches; see man; also the .d but ls needs -da for that)
There's GUI ways to see dates, but Idk GUI (like you don't CLI)

Is this a new install? (Reinstall?)
Ever done anything 'awful' like: sudo echo sudo >ThatFile?

I realize you probably just click on the GUI to run it; you probably tried cli: apt update
Since you've done good web-searching, look for ways to: clean 'bad repositories'
https://askubuntu.com/questions/9696...ce-list-update
(My ISP's login page once got dumped into something like this!!!)

Have patience&persistence!!! The hundreds of LQ volunteers will 'get you thru this'

LOL I am so new to Linux, I honestly didn't understand some of that.


I first ran into the issue when trying to open Synaptic. After entering my pswd and synaptic opens, I am immediately given an error box with

E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.


Then, I opened terminal and tried:

sudo apt-get update




To which I received:

E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list
E: The list of sources could not be read.



I then tried 'man' and 'stat' but I don't think I did it right. Just entered 'man' and then tried 'stat'.

I then tried cli: apt update and was returned:


cli: apt update
No command 'cli:' found, did you mean:
Command 'clit' from package 'convlit' (universe)
Command 'cli' from package 'mono-runtime' (main)
Command 'clip' from package 'geomview' (universe)
Command 'clif' from package 'clif' (universe)
cli:: command not found



I don't know what GUI is or how to use it. I'm sorry, I am so new to this. I did try to search up how to fix bad repositories and it seemed to turn up fixes that involved using 'sudo' commands
 
Old 09-07-2017, 12:14 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051Reputation: 6051
Code:
'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official.list
breaking it down:
/etc/apt/sources.list.d/mono-official.list is a file on your system.
it contains invalid syntax, namely the string 'sudo'.
it doesn't take a linux genius to immediately see that someone or something entered a whole command into a file that should only contain links to repositories.
please, issue the following command:
Code:
cat /etc/apt/sources.list.d/mono-official.list
and post the output, including the command itself, here.

bonus points if you put it in code tags.

edit (off topic):
i mildly chuckled:
Quote:
Originally Posted by 221B View Post
Command 'clit' from package 'convlit' (universe)

Last edited by ondoho; 09-07-2017 at 12:16 PM.
 
  


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: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:Type 'Reading' is not known on line 53 in source list /etc/apt/sources.list, E:The hunterclan0405 Linux - Newbie 2 01-15-2011 11:08 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 08:17 AM
apt-get; E: Type 'GPG' is not known on line 20 in source list /etc/apt/sources.list tomorrow Linux - Newbie 9 05-21-2009 08:42 AM

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

All times are GMT -5. The time now is 01:49 PM.

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