GNU/Linux >> Linux の 問題 >  >> Debian

Debian 9StretchLinuxにSpotifyをインストールする方法

目的

次のSpotifyのセットアップ手順は、spotify.comが提供するインストール手順の概要を示しています。それでも、Debian StretchへのSpotifyのインストール中にいくつかの問題が発生する可能性があります。以下の付録を読んで、問題を解決してください。

要件

DebianStretchシステムへの特権アクセスが必要です。

難易度

簡単

規約

  • –指定されたLinuxコマンドは、rootユーザーとして直接、またはsudoを使用して、root権限で実行する必要があります。 コマンド
  • $ –特定のLinuxコマンドを通常の非特権ユーザーとして実行する必要があります

手順

Spotifyのリポジトリを含める

まず、Spotifyのリポジトリ署名キーを含める必要があります。以下のコマンドを実行し、有効期限が切れていないキーをインポートします。ほとんどの場合、数値の選択は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 

Spotifyのリポジトリをローカルソースに追加し、apt-get updateを実行します :

# echo deb http://repository.spotify.com stable non-free > /etc/apt/sources.list.d/spotify.list
# apt-get update

DebianStretchにSpotifyをインストールする

最後に、apt-getを使用してDebianStretchにSpotifyクライアントをインストールする準備が整いました。 comamnd:

#  apt-get install spotify-client

全部終わった。これで、スタートメニューまたはコマンドラインからSpotifyを実行できるようになります。

$ spotify


付録

gpg:キーサーバーの受信に失敗しました:dirmngrがありません

dirmngrがありません バイナリ。 dirmngrをインストールします パッケージ。

# apt install dirmngr

エラー:

gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/tmp/tmp.t1Mi4lXT6P/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr

spotify-client:依存:libssl1.0.0ですが、インストールできません

DebianStretchには上位バージョンのlibsslが含まれています 。 libssl1.0.0をダウンロードしてインストールします Debian Jessieリポジトリから:

$ wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb
# dpkg -i libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb

エラー:

The following packages have unmet dependencies:
 spotify-client : Depends: libssl1.0.0 but it is not installable

Debian
  1. Debian 9StretchLinuxにAMDGPUドライバをインストールする方法

  2. Debian 9StretchLinuxにDockerエンジンをインストールする方法

  3. Debian 9StretchLinuxにビットコインノードをインストールする方法

  1. Debian 9StretchLinuxにLAMPサーバーをインストールする方法

  2. Debian 9StretchLinuxにNodeJSをインストールする方法

  3. SkypeをDebian9StretchLinux64ビットにインストールする方法

  1. Debian 9StretchLinuxにTomcat9をインストールする方法

  2. Debian 9StretchLinuxにTeamViewerをインストールする方法

  3. DropboxクライアントをDebian9StretchLinuxにインストールする方法