Results 1 to 9 of 9

Thread: apt-get error

  1. #1
    Join Date
    Jan 2018
    Beans
    5

    Lightbulb apt-get error

    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!
    Last edited by nauanalima; January 8th, 2018 at 01:02 AM.

  2. #2
    Join Date
    Oct 2006
    Beans
    57,606

    Re: apt-get error

    What is the output from..

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

  3. #3
    Join Date
    Jan 2018
    Beans
    5

    Re: apt-get error

    Quote Originally Posted by howefield View Post
    What is the output from..

    Code:
    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

  4. #4
    Join Date
    Oct 2006
    Beans
    57,606

    Re: apt-get error

    Does the sp file contain anything ?

    Code:
    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.

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

  5. #5
    Join Date
    Jan 2018
    Beans
    5

    Re: apt-get error

    Quote Originally Posted by howefield View Post
    Does the sp file contain anything ?

    Code:
    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.

    Code:
    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?

  6. #6
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,520

    Re: apt-get error

    Locate and delete one of the duplicates in sources.list.
    Why do you have both 32-bit and 64-bit sources listed?

  7. #7
    Join Date
    Jan 2018
    Beans
    5

    Re: apt-get error

    Quote Originally Posted by ian-weisser View Post
    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.

  8. #8
    Join Date
    Jan 2018
    Beans
    5

    Re: apt-get error

    Thank you very much, guys!

  9. #9
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,317
    Distro
    Ubuntu

    Re: apt-get error

    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/...r-linux-users/

    You can also go ahead and mark this thread as solved:
    https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •