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. |
The error is:
Quote:
Code:
deb http://repository.spotify.com stable non-free Quote:
|
Quote:
|
I tried to move it to trash using file manager but its says:
Quote:
|
One way would be to type the following in a terminal:
Code:
sudo rm /etc/apt/sources.list.d/spotify.listsudo |
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 |
Did you read the first part of post #2?
Post the output of: Code:
cat /etc/apt/sources.list.d/spotify.list |
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 |
Quote:
|
In a terminal, type the command:
Code:
cat /etc/apt/sources.list.d/spotify.list Code:
deb http://repository.spotify.com stable non-free |
Quote:
|
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" |
Quote:
Code:
shawn@shawn-Aspire-T690:~$ cat /etc/apt/sources.list.d/spotify.list |
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 Save and exit. |
Quote:
|
All times are GMT -5. The time now is 03:14 AM. |