PDA

View Full Version : [ubuntu] apt-get error



nauanalima
January 7th, 2018, 10:14 PM
I'm getting the following error:

N: Ignoring file 'sp' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

when I run the commands sudo apt-get update and sudo apt-get upgrade

It doesn't seem to be affecting my machine directly, but I would like to clear up the issue before it has a chance to develop into something worse.

EDIT: solved!

howefield
January 7th, 2018, 10:26 PM
What is the output from..


ls /etc/apt/sources.list.d/

nauanalima
January 7th, 2018, 10:43 PM
What is the output from..


ls /etc/apt/sources.list.d/


nauana@GlaDOS:~$ ls /etc/apt/sources.list.d/
sp spotify.list.save vajdics-netbeans-installer-trusty.list.save webupd8team-java-trusty.list.save
spotify.list vajdics-netbeans-installer-trusty.list webupd8team-java-trusty.list

howefield
January 7th, 2018, 10:50 PM
Does the sp file contain anything ?


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

If it is empty you could delete it, or move it to your Documents folder if you want to save a copy.


sudo mv /etc/apt/sources.list.d/sp ~/Documents/

nauanalima
January 7th, 2018, 11:05 PM
Does the sp file contain anything ?


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

If it is empty you could delete it, or move it to your Documents folder if you want to save a copy.


sudo mv /etc/apt/sources.list.d/sp ~/Documents/

Done with that problem, but I still have these warnings:

W: Duplicate sources.list entry http://repository.spotify.com/ stable/non-free amd64 Packages (/var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://repository.spotify.com/ stable/non-free i386 Packages (/var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_binary-i386_Packages)

What can I do?

ian-weisser
January 8th, 2018, 12:28 AM
Locate and delete one of the duplicates in sources.list.
Why do you have both 32-bit and 64-bit sources listed?

nauanalima
January 8th, 2018, 12:59 AM
Locate and delete one of the duplicates in sources.list.
Why do you have both 32-bit and 64-bit sources listed?

I was trying to install Spotify but neither of the two versions worked. :(

nauanalima
January 8th, 2018, 01:00 AM
Thank you very much, guys!

deadflowr
January 8th, 2018, 05:33 AM
For what it's worth you can forego the spotify repository now and instead install the snap package for it:
https://insights.ubuntu.com/2017/12/20/canonical-welcome-spotify-as-a-snap-for-linux-users/

You can also go ahead and mark this thread as solved:
https://wiki.ubuntu.com/UnansweredPostsTeam/SolvedThreads