LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2015, 11:12 PM   #1
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Rep: Reputation: Disabled
How to fix a error Please Help


Code:
W:Ignoring file 'spotify.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension, E:Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/spotify.list, E:The list of sources could not be read., W:Ignoring file 'spotify.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension, W:Ignoring file 'spotify.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension, E:The package lists or status file could not be parsed or opened.
 
Old 09-13-2015, 11:52 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
The error is:
Quote:
Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/spotify.list
No need for the command sudo in the file. The enrty should look something like this:
Code:
deb http://repository.spotify.com stable non-free
Quote:
W:Ignoring file 'spotify.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
The above is a warning. To get rid of it, delete the file '/etc/apt/sources.list.d/spotify.listsudo'
 
1 members found this post helpful.
Old 09-14-2015, 12:28 AM   #3
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by norobro View Post
The error is:
No need for the command sudo in the file. The enrty should look something like this:
Code:
deb http://repository.spotify.com stable non-free

The above is a warning. To get rid of it, delete the file '/etc/apt/sources.list.d/spotify.listsudo'
How do I delete this? Please bro im desperate
 
Old 09-14-2015, 12:32 AM   #4
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
I tried to move it to trash using file manager but its says:
Quote:
Unable to trash file permission denied
 
Old 09-14-2015, 12:38 AM   #5
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
One way would be to type the following in a terminal:
Code:
sudo rm /etc/apt/sources.list.d/spotify.listsudo
 
1 members found this post helpful.
Old 09-14-2015, 12:44 AM   #6
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
So it got rid of the sportify file but now it wont update anymore when I go sudo apt-get update
Code:
shawn@shawn-Aspire-T690:~$ sudo apt-get update
[sudo] password for shawn: 
E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/spotify.list
E: The list of sources could not be read.
shawn@shawn-Aspire-T690:~$
 
Old 09-14-2015, 12:46 AM   #7
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
Did you read the first part of post #2?

Post the output of:
Code:
cat /etc/apt/sources.list.d/spotify.list
 
1 members found this post helpful.
Old 09-14-2015, 12:47 AM   #8
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
And in when I open the synaptic package manager i get this
Code:
E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/spotify.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.
 
Old 09-14-2015, 12:52 AM   #9
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by norobro View Post
Did you read the first part of post #2?

Post the output of:
Code:
cat /etc/apt/sources.list.d/spotify.list
Im sorry I dont know what to do with that code im new with linux please explain further
 
Old 09-14-2015, 12:57 AM   #10
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
In a terminal, type the command:
Code:
cat /etc/apt/sources.list.d/spotify.list
You must have sudo at the beginning of line #2 in that file. You need to remove it. The contents of the file should look like the following (as stated in post #2):
Code:
deb http://repository.spotify.com stable non-free
 
1 members found this post helpful.
Old 09-14-2015, 01:00 AM   #11
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by norobro View Post
In a terminal, type the command:
Code:
cat /etc/apt/sources.list.d/spotify.list
You must have sudo at the beginning of line #2 in that file. You need to remove it. The contents of the file should look like the following (as stated in post #2):
Code:
deb http://repository.spotify.com stable non-free
Ok so I typed in cat /etc/apt/sources.list.d/spotify.list and it said "sudo apt-get update"
 
Old 09-14-2015, 01:07 AM   #12
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
What was on line #1?

All you need in that file is "deb http://repository.spotify.com stable non-free". Edit it and remove the "sudo apt-get update"
 
1 members found this post helpful.
Old 09-14-2015, 01:10 AM   #13
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by norobro View Post
What was on line #1?

All you need in that file is "deb http://repository.spotify.com stable non-free". Edit it and remove the "sudo apt-get update"
I got this to be exact so now what?:
Code:
shawn@shawn-Aspire-T690:~$ cat /etc/apt/sources.list.d/spotify.list

sudo apt-get update
shawn@shawn-Aspire-T690:~$
 
Old 09-14-2015, 01:16 AM   #14
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
You can use a simple text editor (nano) to edit the file, but you have to have root user privileges. So in a terminal type:
Code:
sudo nano /etc/apt/sources.list.d/spotify.list
Remove the line "sudo apt-get update" and add "deb http://repository.spotify.com stable non-free"
Save and exit.
 
1 members found this post helpful.
Old 09-14-2015, 01:29 AM   #15
iHateErrors
Member
 
Registered: Sep 2015
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by norobro View Post
You can use a simple text editor (nano) to edit the file, but you have to have root user privileges. So in a terminal type:
Code:
sudo nano /etc/apt/sources.list.d/spotify.list
Remove the line "sudo apt-get update" and add "deb http://repository.spotify.com stable non-free"
Save and exit.
So I deleted all the spotify stuff using that awesome sudo rm thing u told me and i did the nano thing too and now its working and my computers updating again. And I really appreciate your help bro. Pss I dont think you would have a link to a proper spotify install guide for 32bit lxle?
 
  


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
How to fix command not found error and what is too many argument error. deepakunix Linux - Newbie 6 01-14-2012 12:30 AM
How can I fix this error? Perquisitor Linux - Newbie 4 09-04-2006 11:26 AM
can anyone fix this error ?? vstealerv Linux - Newbie 2 04-30-2005 09:03 PM
Is there a fix for this error slackrush Slackware 2 07-10-2004 09:53 AM
how do i fix this error AMArt79196 Red Hat 1 07-05-2004 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 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