可能重复:
如何运行 Spotify 的原生版本?
我无法安装Spotify Linux 预览版。
我对 Ubuntu 还不熟悉,所以不确定我是否做错了什么。
首先,在终端中,我运行了以下命令:
sudo gedit /etc/apt/sources.list
在底部我添加了以下内容:
deb http://repository.spotify.com stable non-free
# deb-src http://repository.spotify.com stable non-free
然后我运行了这个:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E
下一个:
sudo apt-get update
一切似乎都很顺利,因为没有错误消息。
接下来,我运行了这个:
sudo apt-get install spotify-client-qt
但当我这样做时,我得到了这个:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
spotify-client-qt : Depends: spotify-client but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
有任何想法吗?
编辑
我正在使用 Ubuntu 11.10,是的,我遇到了用户在该问题中遇到的相同错误消息:
获取失败http://repository.spotify.com/dists/stable/Release无法在元索引文件中找到预期的条目 non-free/source/Sources(格式错误的发布文件?)某些索引文件下载失败、已被忽略或使用旧文件代替。
我#
在第二行(不存在)之前添加了,并且不再收到该错误消息。
另外,为了回复 Bahaïka 的评论,我运行了该命令 ( sudo apt-get install spotify-client
) 并得到了以下结果:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
spotify-client : Depends: libqt4-webkit (>= 4.5.0) but it is not going to be installed
Depends: libssl0.9.8 but it is not going to be installed
Recommends: libavcodec53 but it is not going to be installed or
libavcodec52 but it is not installable
Recommends: libavformat53 but it is not going to be installed or
libavformat52 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
答案1
好的包仅被称为“spotify-client”,您可以删除“qt”部分。
sudo apt-get install spotify-client
正如您在输出中看到的,QT 是一个过渡包:
$ apt-cache search spotify-client
spotify-client - Spotify desktop client
spotify-client-gnome-support - Transitional package for spotify-client
spotify-client-qt - Transitional package for spotify-client
编辑
根据这个 :http://packages.ubuntu.com/search?keywords=libqt4-webkit 您必须启用 Universe 存储库。进入软件源并激活它。
这是我的 /etc/apt/sources.list 里面的内容:
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ oneiric universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ oneiric universe
deb http://fr.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ oneiric-updates universe