LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to fix a error Please Help (https://www.linuxquestions.org/questions/linux-software-2/how-to-fix-a-error-please-help-4175553410/)

iHateErrors 09-13-2015 10:12 PM

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.

norobro 09-13-2015 10:52 PM

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'

iHateErrors 09-13-2015 11:28 PM

Quote:

Originally Posted by norobro (Post 5419974)
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

iHateErrors 09-13-2015 11:32 PM

I tried to move it to trash using file manager but its says:
Quote:

Unable to trash file permission denied

norobro 09-13-2015 11:38 PM

One way would be to type the following in a terminal:
Code:

sudo rm /etc/apt/sources.list.d/spotify.listsudo

iHateErrors 09-13-2015 11:44 PM

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:~$


norobro 09-13-2015 11:46 PM

Did you read the first part of post #2?

Post the output of:
Code:

cat /etc/apt/sources.list.d/spotify.list

iHateErrors 09-13-2015 11:47 PM

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.


iHateErrors 09-13-2015 11:52 PM

Quote:

Originally Posted by norobro (Post 5419992)
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

norobro 09-13-2015 11:57 PM

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

iHateErrors 09-14-2015 12:00 AM

Quote:

Originally Posted by norobro (Post 5419997)
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"

norobro 09-14-2015 12:07 AM

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"

iHateErrors 09-14-2015 12:10 AM

Quote:

Originally Posted by norobro (Post 5420002)
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:~$


norobro 09-14-2015 12:16 AM

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.

iHateErrors 09-14-2015 12:29 AM

Quote:

Originally Posted by norobro (Post 5420009)
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?


All times are GMT -5. The time now is 03:14 AM.