Results 1 to 8 of 8

Thread: "echo" problem/Spotify

  1. #1
    Join Date
    Aug 2012
    Beans
    18

    "echo" problem/Spotify

    So I tried to install Spotify for Linux (http://www.spotify.com/us/download/previews/) using instructions from around the web and this thread: http://ubuntuforums.org/showthread.p...=spotify+linux


    I noticed most everything worked but system got hung up on the "aptitude" command. And then,
    Attempting to install Spotify from the Terminal now gets:

    Code:
    E: Type 'echo' is not known on line 61 in source list /etc/apt/sources.list
    E: The list of sources could not be read.
    E: Unable to locate package spotify-client
    Also there are random error messages, now, since I edited in that "echo" thing. I think I edited my etc/sources.list to include an echo and I don't know how to get it out. I tried sudo gedit /etc/apt/sources.list but that brings up a blank text document. I know this is all really basic stuff...but


    Thanks
    Ubuntu 12.04.01
    Asus EE PC
    Nathan

    p.s.
    Perhaps this was what did it? I tried:

    Code:
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
    sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list'
    sudo apt-get update
    sudo apt-get install spotify-client
    Last edited by Satchel88; February 8th, 2013 at 06:02 AM.

  2. #2
    Join Date
    Nov 2006
    Location
    The green
    Beans
    Hidden!
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: "echo" problem/Spotify

    First of all you should just follow the instructions that are on the Spotify website, those will work fine.

    Can you post your /etc/apt/sources.list here? (e.g. the output of 'sudo nano /etc/apt/sources.list') Because it seems you just put something in there that shouldn't be.

  3. #3
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: "echo" problem/Spotify

    It seems, you somehow managed to put 'echo' into /etc/apt/sources.list. To see the problem, try
    Code:
    grep echo /etc/apt/sources.list
    Last edited by schragge; February 8th, 2013 at 09:28 AM.

  4. #4
    Join Date
    Aug 2012
    Beans
    18

    Re: "echo" problem/Spotify

    Yea, I really messed up I think...keep getting weird error messages.

    Tried what you said, got this:
    Code:
    me@mypc:~$ grep echo /etc/apt/sources.list
    echo "deb http://repository.spotify.com stable non-free" | sudo tee -a /etc/apt/sources.list
    echo "deb http://repository.spotify.com stable non-free" | sudo tee -a /etc/apt/sources.list
    ???

  5. #5
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: "echo" problem/Spotify

    Try to edit /etc/apt/sources.list manually
    Code:
    sudo sensible-editor /etc/apt/sources.list
    and change the two lines starting with echo to one line below
    Code:
    deb http://repository.spotify.com stable non-free
    Last edited by schragge; February 9th, 2013 at 08:19 PM.

  6. #6
    Join Date
    Aug 2012
    Beans
    18

    Re: "echo" problem/Spotify

    Okay so one of the error messages when I check for updates says this:

    An unresolvable problem occurred while initializing the package information.

    Please report this bug against the 'update-manager' package and include the following error message:

    'E:Type 'cancel' is not known on line 68 in source list /etc/apt/sources.list'
    I did edit out the two echo lines as you instructed, and nothing shows, now, when I tried your initial "grep echo" suggestion.

  7. #7
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: "echo" problem/Spotify

    Delete those two lines from sources.list and replace it with this one:

    Code:
    deb http://repository.spotify.com stable non-free
    Then run:

    Code:
    sudo apt-get update
    sudo apt-get install spotify-client
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  8. #8
    Join Date
    Aug 2012
    Beans
    18

    Re: "echo" problem/Spotify

    Worked like a charm, thanks!

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
  •