当前位置: 首页>>技术教程>>正文


在Ubuntu 16.04(Xenial Xerus)LTS 64位Linux上安装Spotify客户端

, ,
本指南将向您展示如何在Ubuntu 16.04(Xenial Xerus)LTS 64位Linux上安装Spotify客户端。首先,我们从添加一个Spotify存储库开始:


$ sudo echo 'deb http://repository.spotify.com stable non-free' >> /etc/apt/sources.list

执行以下命令并导入未过期的密钥。您的数字选择很有可能是1如下所示:


# gpg --keyserver hkp://keyserver.ubuntu.com --search-key 'Spotify Public Repository Signing Key'
gpg: data source: http://91.189.89.49:11371
(1)     Spotify Public Repository Signing Key 
          4096 bit RSA key EFDC8610341D9410, created: 2017-07-25, expires: 2018-07-25
(2)     Spotify Public Repository Signing Key 
          4096 bit RSA key 13B00F1FD2C19886, created: 2015-05-28, expires: 2017-11-22 (expired)
(3)     Spotify Public Repository Signing Key 
          2048 bit RSA key 082CCEDF94558F59, created: 2012-06-25, expires: 2015-06-25 (expired)
(4)     Spotify Public Repository Signing Key 
          1024 bit DSA key 4F9946354E9CFF4E, created: 2010-06-23, expires: 2012-06-22 (expired)
Keys 1-4 of 4 for "Spotify Public Repository Signing Key".  Enter number(s), N)ext, or Q)uit > 1
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key EFDC8610341D9410: public key "Spotify Public Repository Signing Key " imported
gpg: Total number processed: 1
gpg:               imported: 1

要确认,因此列出所有导入的密钥,请运行:


# gpg --list-keys
/root/.gnupg/pubring.kbx
------------------------
pub   rsa4096 2017-07-25 [SC] [expires: 2018-07-25]
      0DF731E45CE24F27EEEB1450EFDC8610341D9410
uid           [ unknown] Spotify Public Repository Signing Key 

接下来,更新软件包索引:


$ sudo apt-get update

如果您收到有关丢失密钥的错误消息,请用错误消息中提供的密钥替换上述密钥。在这一阶段,我们应该能够像往常一样使用apt-get命令如下图所示:


$ sudo apt-get install spotify-client

安装完成后,从终端运行spotify以捕获任何可能的错误:


$ spotify

您的Spotify客户很可能会抱怨丢失libgcrypt.so.11共享库。


spotify: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory

如果是这种情况,您需要下载到libgcrypt11_1.5.3-5_amd64.deb或来自debian存储库的类似版本的软件包:


$ wget http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-5_amd64.deb
$ sudo  dpkg -i libgcrypt11_1.#5.3-5_amd64.deb 
Selecting previously unselected package libgcrypt11:amd64.
(Reading database ... 172946 files and directories currently installed.)
Preparing to unpack libgcrypt11_1.5.3-5_amd64.deb ...
Unpacking libgcrypt11:amd64 (1.5.3-5) ...
Setting up libgcrypt11:amd64 (1.5.3-5) ...
Processing triggers for libc-bin (2.21-0ubuntu5) ...

Installation of Spotify client on Ubuntu 16.04 (Xenial Xerus ) LTS 64-bit Linux

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/9922.html,未经允许,请勿转载。