Can't install Spotify under Ubuntu.

Can't install Spotify under Ubuntu.


I followed the official installation guide and I did:

curl -sS | sudo apt-key add - 
echo "deb stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get update


But I receive these error messages:


W: GPG error: stable InRelease: The following signatures could not be verified because the public key is not available: NO_PUBKEY D1742AD60D811D58
E: The repository " stable InRelease" is not signed.
N: Updating from this repository cannot be performed safely and is therefore disabled by default.
N: Please refer to the apt-secure(8) man page for repository creation and user configuration.

3 Replies


See the following post:


Run this command before the update and install commands:

Example (going off your error code):

sudo apt-key adv --keyserver hkp:// --recv-keys D1742AD60D811D58

 Then update:

Sudo apt-get update

Finally, try to install the spotify client:

Sudo apt-get install spotify-client


2021 followed this steps and other steps and ended up at a wall anyone else with a solution couldn't find one on Quora as well


Add the current key with the following, then update and install

sudo apt-key adv --keyserver hkp:// --recv-keys 5E3C45D7B312C643


Suggested posts

Env: prod