Install spotify on Linux

1.Install snapd

1
sudo pacman -S snapd

2.Cofigure snapd

1
2
$ sudo systemctl enable --now snapd.socket
Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /usr/lib/systemd/system/snapd.socket.

3.Install spotify

1
2
$ sudo systemctl restart snapd.service
$ snap install spotify

Then type passwod in the pop-up window (Do not close the terminal)

1
2
3
4
5
6
7
8
9
10
$ snap install spotify
2018-08-25T20:02:45+08:00 INFO Waiting for restart...
Download snap "spotify" (19) from channel "stable" 34% 1.31MB/s 1m32s
Download snap "spotify" (19) from channel "stable" 34% 1.31MB/s 1m31s
Download snap "spotify" (19) from channel "stable" 34% 1.31MB/s 1m31s
Download snap "spotify" (19) from channel "stable" 34% 1.31MB/s 1m30s
Download snap "spotify" (19) from channel "stable" 35% 1.31MB/s 1m30s
Download snap "spotify" (19) from channel "stable" 37% 1.31MB/s 1m27s
Download snap "spotify" (19) from channel "stable" 43% 1.36MB/s 1m15s
spotify 1.0.88.353.g15c26ea1-14 from 'spotify' installed

Now you can enjoy the music!