Installing Spotify Premium on Ubuntu 11.10

Asked by Rich.b

I am backing up all files from from Parker Bell to External Hard Drive, so that I can install Ubuntu 11.10

SEE Post
Changing OS on Packer Bell 2.9GHz Question #190639

I would like to install Spotify and have done the following:-

Could not save the file /etc/apt/sources.list.

june@june-00000000000000000000000:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E
[sudo] password for june:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.N9Nms2Qgnj --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E
gpg: requesting key 4E9CFF4E from hkp server keyserver.ubuntu.com
gpg: key 4E9CFF4E: public key "Spotify Public Repository Signing Key <email address hidden>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1

Hit http://gb.archive.ubuntu.com oneiric-backports/universe Translation-en
Reading package lists... Done
june@june-00000000000000000000000:~$ sudo apt-get install spotify-client-qt
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package spotify-client-qt
june@june-00000000000000000000000:~$

Please could you advise.....

Thanks

Richard

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
Rich.b
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list'
sudo apt-get update
sudo apt-get install spotify-client

Should do it. It installs the client, not just for premium, it works with free too.

Revision history for this message
Rich.b (aybi30) said :
#2

Sorry about ALL this rubbish below, but repeated the inputs in terminal.

We are can SEE Spotify although we seem it the latest update

help please

Richard and June

june@june-00000000000000000000000:~$ sudo apt-get install spotify-client-qt
Reading package lists... Done
Building dependency tree
Reading state information... Done
spotify-client-qt is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
E: Type ‘sudo’ is not known on line 4 in source list /etc/apt/sources.list
E: The list of sources could not be read.
june@june-00000000000000000000000:~$
june@june-00000000000000000000000:~$ sudo apt-get update
[sudo] password for june:
E: Type ‘sudo’ is not known on line 7 in source list /etc/apt/sources.list
E: The list of sources could not be read.

june@june-00000000000000000000000:~$ sudo apt-get update
[sudo] password for june:
E: Type ‘sudo’ is not known on line 7 in source list /etc/apt/sources.list
E: The list of sources could not be read.
june@june-00000000000000000000000:~$ sudo apt-get install spotify-client-qt
Reading package lists... Done
Building dependency tree
Reading state information... Done
spotify-client-qt is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
E: Type ‘sudo’ is not known on line 7 in source list /etc/apt/sources.list
E: The list of sources could not be read

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

ok run:

head -n 4 /etc/apt/sources.list

What is output?

Revision history for this message
Rich.b (aybi30) said :
#4

Here is the result of:-

june@june-00000000000000000000000:~$ head -n 4 /etc/apt/sources.list
# 1. Add this line to your list of repositories by
# editing your /etc/apt/sources.list
deb http://repository.spotify.com stable non-free

june@june-00000000000000000000000:~$

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

ok and the output of:

head -n 7 /etc/apt/sources.list

Thanks

Revision history for this message
Rich.b (aybi30) said :
#6

june@june-00000000000000000000000:~$ head -n 7 /etc/apt/sources.list
# 1. Add this line to your list of repositories by
# editing your /etc/apt/sources.list
deb http://repository.spotify.com stable non-free

# 2. If you want to verify the downloaded packages,
# you will need to add our public key
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E
june@june-00000000000000000000000:~$

Revision history for this message
Rich.b (aybi30) said :
#7

A NO Entry icon appeared by the clock and what it said:-

Could not initialise the package information

An unresolvable problem occurred while initialising the package information.

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

'E:Type ‘apt-key’ is not known on line 7 in source list /etc/apt/sources.list'

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Ok run:

gksudo gedit /etc/apt/sources.list

Delete these lines:

# 2. If you want to verify the downloaded packages,
# you will need to add our public key
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E

Save the new file and close gedit, then run:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E; sudo apt-get update; sudo apt-get install spotify-client-qt

You added ALL The text from the how to to the text which is why you are getting the issue, did you even READ what you copied?

Revision history for this message
Rich.b (aybi30) said :
#9

Sorry I did understand all that was seeing, I am do this for neighbour a few doors away from me. I recommend Ubuntu 11.10 to her and she is please with it but would like to have Spotify if possible.

I have Deleted:-

# 2. If you want to verify the downloaded packages,
# you will need to add our public key
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E

An RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E; sudo apt-get update; sudo apt-get install spotify-client-qt

this the end of listing from terminal:-

Hit http://gb.archive.ubuntu.com oneiric-backports/universe Translation-en
Fetched 1,170 kB in 7s (154 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
spotify-client-qt is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.

Did you want ALL the info from Treminal?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

Ok then run:

sudo apt-get upgrade

And get updated.

If you then run:

clear; sudo apt-get update

Is it smooth?

Revision history for this message
Rich.b (aybi30) said :
#11

Done the above, what next please ?

Thanks very much for your help

Richard

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

Was the update command smooth? No errors?

Revision history for this message
Rich.b (aybi30) said :
#13

Hurray IT WORKED

June now has Spotify

Thanks to you

Richard

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#14

If you are adding stuff to the file. Look at what you are adding. Blindly copying and pasting txt to random files will make issues like this

Revision history for this message
Rich.b (aybi30) said :
#15

Yes I see.

I should not have added:-

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E

To source file..it that right?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#16

Indeed, that is a command to import a key to authenticate the new software source.

Revision history for this message
Rich.b (aybi30) said :
#17

Sorry to be a nuisance again, but i am stuck.....

can you help please ?

We are running ubuntu11.10. And is upto date software today, On Packard bell PC

I have added to source file and save it... deb http://repository.spotify.com stable non-free
This is an output of source file:-
deb http://repository.spotify.com stable non-free

#deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ oneiric main restricted

I ran the following :-

sudo apt-get update

Them ran :-

sudo apt-get install spotify-client

Failed to fetch http://repository.spotify.com/pool/non-free/s/spotify/spotify-client-qt_0.8.3.278.g21c7566.632-1_all.deb 404 Not Found

Reading package lists... Done
W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 082CCEDF94558F59
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  spotify-client-qt
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,632 B of archives.
After this operation, 0 B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  spotify-client-qt
Install these packages without verification [y/N]? I sais yes the install.

But no stopifty..... ! * ?

gksudo gedit /etc/apt/sources.list

(gksudo:2227): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Revision history for this message
Rich.b (aybi30) said :
#18

How do I get a new public key?

Revision history for this message
Rich.b (aybi30) said :
#19

After 5 or 6 retries IT WORKED HURRAY !