LinuxQuestions.org
Visit Jeremy's Blog.
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, 10: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, 10:52 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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-13-2015, 11:28 PM   #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-13-2015, 11:32 PM   #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-13-2015, 11:38 PM   #5
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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-13-2015, 11:44 PM   #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-13-2015, 11:46 PM   #7
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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-13-2015, 11:47 PM   #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-13-2015, 11:52 PM   #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-13-2015, 11:57 PM   #10
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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, 12: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, 12:07 AM   #12
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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, 12: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, 12:16 AM   #14
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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, 12: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-13-2012 11:30 PM
How can I fix this error? Perquisitor Linux - Newbie 4 09-04-2006 10:26 AM
can anyone fix this error ?? vstealerv Linux - Newbie 2 04-30-2005 08:03 PM
Is there a fix for this error slackrush Slackware 2 07-10-2004 08:53 AM
how do i fix this error AMArt79196 Red Hat 1 07-05-2004 03:44 PM

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

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