如何在 ubuntu 14.04 上安装 last.fm scrobbler?

如何在 ubuntu 14.04 上安装 last.fm scrobbler?

http://www.last.fm/download?showplatform=Linux

它有 12.10 的指南,但没有更新的版本,请有人帮忙

答案1

使用哪个存储库并不重要。每个存储库都安装相同的版本。

例如 Debian 存储库

sudo apt-add-repository "deb http://apt.last.fm/debian stable main"
sudo apt-get update
sudo apt-get install lastfm-scrobbler

但桌面文件似乎有错误/usr/share/applications/lastfm-client.desktop

[Desktop Entry]
Name=Last.fm Client
Comment=Listen to Last.fm radio
Exec=/usr/bin/lastfm-client
Icon=lastfm-client
Terminal=false
Type=Application
Categories=Qt;Audio;AudioVideo;
StartupNotify=true

二进制文件Exec=/usr/bin/lastfm-client不存在。因此,请在编辑器中打开该文件

sudo nano /usr/share/applications/lastfm-client.desktop

并将行Exec=

Exec=/usr/bin/lastfm-client

Exec=/usr/bin/lastfm-scrobbler

或者,你可以将文件复制到本地应用程序文件夹中

cp /usr/share/applications/lastfm-client.desktop ~/.local/share/applications/lastfm-client.desktop
sudo chown $USER:USER ~/.local/share/applications/lastfm-client.desktop

并通过以下方式更改此文件

nano ~/.local/share/applications/lastfm-client.desktop

答案2

看来 apt.last.fm 不再活跃,因此上述答案不再有效。

从所示来源安装 lastfm(不是 lastfm-scrobbler)这里仍然可以工作(在我的情况下是在 Xubuntu 18.04 中),但 lastfm 似乎仍然无法与网络组件通信,并且无法登录到我的帐户。

无论如何,如果您想要更简单地安装这些较旧的 .debs,而不需要每次都运行单独的命令来修复依赖项,则可以使用 gdebi 而不是 dpkg,因此链接答案中的方法将更类似于此:

sudo apt install gdebi
wget security.ubuntu.com/ubuntu/pool/universe/l/lastfm/lastfm_1.5.4.27091+dfsg1-1ubuntu1_amd64.deb
sudo gdebi lastfm_1.5.4.27091+dfsg1-1ubuntu1_amd64.deb

但是当我看到网络问题时我放弃了,我不知道如何或者是否可以在 18.04 中修复该问题。

相关内容