Native Spotify in Ubuntu 11.10 (Linux Preview)

(Image considered used under fair use)
1. Install
2. Local files
3. Common bugs and fixing them
To install Spotify native Linux client paste the following line into the terminal(ctrl+alt+t or Super(known as Windows key) -> terminal) and confirm with your password.
echo “deb http://repository.spotify.com stable non-free” | sudo tee -a /etc/apt/sources.list && sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 4E9CFF4E && sudo apt-get update && sudo apt-get install spotify-client-qt
Thats all there should be to it. More information and help is under.
NB: Spotify freezes during ads sometimes. click frantic on the next song button so you get a voice ad. To show Spotify their welcome you might consider paying for premium, it makes the bug go away as well. :)
——————
Add application launcer:
Super key (known as windows key) drag into unity launcher
——————
Local files
This will allow you to use local files in spotify.
If you don’t know what architecture you have you can use “uname -m” in terminal, it should output some letters like i386 that i have put in the brackets. Download the file, it should go to your download folder, if not make sure it does or move it there.
32 Bit Packages (i386/i486/i586/i686)
https://docs.google.com/file/d/0B7zekYZwRKjRZjIyZWU2NDEtMDEzNC00MjgxLThjYjEtNTAxZGM4MTE4YzI1/edit
Then in Terminal run:
cd Downloads && tar -zxvf '32 Bit Packages.tar.gz' && sudo dpkg -i *.deb && sudo apt-get install -f
64 Bit Packages (x86_64 GNU/Linux)
https://docs.google.com/file/d/0B7zekYZwRKjRZjNiZDFiNzYtMzg4ZC00MTI2LThhYzctZDg4NmJmZTZiMzgy/edit?pli=1
Then in Terminal run:
cd Downloads && tar -zxvf '64 Bit Packages.tar.gz' && sudo dpkg -i *.deb && sudo apt-get install -f
——————
Fixing the “InRelease” bug
Symptoms:
“”"
Terminal update (sudo apt-get update)
W: Failed to fetch http://repository.spotify.com/dists/stable/InRelease Unable to find expected entry ‘non-free/source/Sources’ in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
“”
“”
Failed to download repository information
Check your Internet connection.
“”
“”
A triangle in the notification area that looks as if your computer is about to die !!!
“”
THE FIX
Super key(known as windows key) –> Software Sources –> Other software –> Remove the check/tick for the source code –> password –> Run Update Manager again

———————-
What does the install script do
sudo sh -c ‘echo “deb http://repository.spotify.com/ stable non-free” >> /etc/apt/sources.list.d/spotify.sources.list’ —- ads repository into your list
&& adv –keyserver keyserver.ubuntu.com –recv-keys 4E9CFF4E —- Security clearance dude!! confirms the repo and sets permissions
&& sudo apt-get update —- updates package list
&& apt-get install spotify-client-qt —- Installs Spotify
Sources:
1. http://www.spotify.com/
2. Bug -> myself :) :D
3. http://ubuntuforums.org/showthread.php?t=1870376