Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Problem Installing Spotify on Ubuntu 18.04

Problem Installing Spotify on Ubuntu 18.04

Premium

Country: Sweden

Device: Computer

Operating System: Ubuntu 18.04

 

My Question or Issue:

 I cant install Spotify.

This is what i have tested so far and the results:


Searched for it on Ubuntu Software (app).

Can't find it.

Went to  this page "https://www.spotify.com/se/download/linux/" and clicked on this link "Spotify in Ubuntu Software".

Ubuntu Software start and i get this message: "Don't know how to handle 'snap://spotify/'


Then i tried installing it throug Terminal. I used this command lines:

"sudo snap install spotify"

This is the result i get:

"error: snap "spotify" is not available on stable for this architecture (i386)
but exists on other architectures (amd64)."

 

Then i tried install Spotify Using Ubuntu Package Manager. I used this command lines:

 

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410

 

This is the result i get:
Picture
Then i used this line:

echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

 

This is the result i get:

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

 

Then i used this line:

sudo apt-get update -y

 

This is the result i get:

Hit:1 http://se.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://se.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://repository.spotify.com stable InRelease [3,302 B]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:5 http://se.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Err:3 http://repository.spotify.com stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A87FF9DF48BF1C90
Get:6 http://se.archive.ubuntu.com/ubuntu bionic-updates/main i386 DEP-11 Metadata [139 kB]
Get:7 http://se.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [31.4 kB]
Get:8 http://se.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [56.9 kB]
Get:9 http://se.archive.ubuntu.com/ubuntu bionic-updates/universe i386 DEP-11 Metadata [166 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe i386 DEP-11 Metadata [6,828 B]
Get:11 http://se.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [170 kB]
Get:12 http://se.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [293 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [9,090 B]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/main i386 DEP-11 Metadata [204 B]
Get:15 http://se.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 DEP-11 Metadata [2,468 B]
Get:16 http://se.archive.ubuntu.com/ubuntu bionic-backports/universe i386 DEP-11 Metadata [5,104 B]
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 A87FF9DF48BF1C90
E: The repository 'http://repository.spotify.com stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
jonis@jonis-MS-7752:~$ sudo apt-get install spotify-client -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package spotify-client

 

Then i used this line:

sudo apt-get install spotify-client -y

 

This is the result i get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package spotify-client

 

This is all i have tested.

I would be really grateful if someone could help me with what is the problem. Note that i'm a beginner of Ubuntu.

Reply
1 Reply

All you need to do is run:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys [the 16-digit key that comes after the "NO_PUBKEY" error]

 

Example (going off your error code):

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys A87FF9DF48BF1C90

 Then update:

Sudo apt-get update

Finally, try to install the spotify client:

Sudo apt-get install spotify-client

I hope this has helped you

Suggested posts