Spotify :
# 1. Add the Spotify repository signing keys to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
# 2. Add the Spotify repository
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
# 3. Update list of available packages
sudo apt-get update
# 4. Install Spotify
sudo apt-get install spotify-client
Other way to install spotify
snap install spotify
Second way:
jimmy@jimmy:~$ sudo apt install dirmngr
[sudo] password for jimmy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
linux-image-4.9.0-4-amd64
Use 'sudo apt autoremove' to remove it.
Suggested packages:
tor
The following NEW packages will be installed:
dirmngr
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 595 kB of archives.
After this operation, 1,110 kB of additional disk space will be used.
Get:1 http://debian.linux.org.tw/debian stretch/main amd64 dirmngr amd64 2.1.18-8~deb9u1 [595 kB]
Fetched 595 kB in 0s (2,951 kB/s)
Selecting previously unselected package dirmngr.
(Reading database ... 141891 files and directories currently installed.)
Preparing to unpack .../dirmngr_2.1.18-8~deb9u1_amd64.deb ...
Unpacking dirmngr (2.1.18-8~deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up dirmngr (2.1.18-8~deb9u1) ...
jimmy@jimmy:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
Executing: /tmp/apt-key-gpghome.hh2gj7tr3t/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
gpg: key EFDC8610341D9410: public key "Spotify Public Repository Signing Key <tux@spotify.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
jimmy@jimmy:~$ echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
deb http://repository.spotify.com stable non-free
jimmy@jimmy:~$ sudo apt update
Ign:1 http://debian.linux.org.tw/debian stretch InRelease
Get:2 http://debian.linux.org.tw/debian stretch-updates InRelease [91.0 kB]
Hit:3 http://debian.linux.org.tw/debian stretch Release
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://dl.google.com/linux/chrome/deb stable Release
Hit:8 http://security.debian.org/debian-security stretch/updates InRelease
Get:9 http://repository.spotify.com stable InRelease [3,302 B]
Get:10 http://repository.spotify.com stable/non-free amd64 Packages [1,606 B]
Fetched 95.9 kB in 6s (15.9 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
jimmy@jimmy:~$ sudo apt install ./libssl1.0.0_1.0.2d-1_amd64.deb
Reading package lists... Done
E: Unsupported file ./libssl1.0.0_1.0.2d-1_amd64.deb given on commandline
jimmy@jimmy:~$ sudo apt install spotify-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
linux-image-4.9.0-4-amd64
Use 'sudo apt autoremove' to remove it.
Recommended packages:
libavcodec54 | libavcodec-extra-54 libavformat54
The following NEW packages will be installed:
spotify-client
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 89.6 MB of archives.
After this operation, 215 MB of additional disk space will be used.
Get:1 http://repository.spotify.com stable/non-free amd64 spotify-client amd64 1:1.0.69.336.g7edcc575-39 [89.6 MB]
Fetched 89.6 MB in 16s (5,587 kB/s)
Selecting previously unselected package spotify-client.
(Reading database ... 141910 files and directories currently installed.)
Preparing to unpack .../spotify-client_1%3a1.0.69.336.g7edcc575-39_amd64.deb ...
Unpacking spotify-client (1:1.0.69.336.g7edcc575-39) ...
Setting up spotify-client (1:1.0.69.336.g7edcc575-39) ...
REF: https://wiki.debian.org/spotify
REF: https://linuxconfig.org/how-to-install-spotify-on-debian-9-stretch-linux