网易云音乐安装问题

music.163.com/#/download 下载的安装包,安装时发现有些包不如ubuntu的新,求解决办法。

[code]sudo dpkg -i netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb
(Reading database … 345903 files and directories currently installed.)
Preparing to unpack netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb …
Unpacking netease-cloud-music (1.0.0) over (1.0.0) …
dpkg: dependency problems prevent configuration of netease-cloud-music:
netease-cloud-music depends on libfontconfig1 (>= 2.11.94); however:
Package libfontconfig1:amd64 is not configured yet.
netease-cloud-music depends on libqt5multimedia5-plugins; however:
Package libqt5multimedia5-plugins is not installed.
netease-cloud-music depends on libqt5multimediawidgets5; however:
Package libqt5multimediawidgets5 is not installed.
netease-cloud-music depends on libqt5libqgtk2; however:
Package libqt5libqgtk2 is not installed.

dpkg: error processing package netease-cloud-music (–install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.15-1) …
Processing triggers for desktop-file-utils (0.23-1) …
Processing triggers for mime-support (3.60) …
Errors were encountered while processing:
netease-cloud-music
[/code]

如果你需要在 Debian 下安装网易云音乐,当然不能用 Ubuntu 的包。用社区源里的吧。

安装ubuntu的版本失败后,出现如下问题,求解决。

sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: libfontconfig1 : Depends: fontconfig-config (= 2.11.94-0ubuntu1.1) but 2.11.0-6.7 is installed Breaks: libfontconfig1:i386 (!= 2.11.94-0ubuntu1.1) but 2.11.0-6.7 is installed libfontconfig1:i386 : Breaks: libfontconfig1 (!= 2.11.0-6.7) but 2.11.94-0ubuntu1.1 is installed libfontconfig1-dev : Depends: libfontconfig1 (= 2.11.0-6.7) but 2.11.94-0ubuntu1.1 is installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... failed. The following packages have unmet dependencies: libfontconfig1 : Depends: fontconfig-config (= 2.11.94-0ubuntu1.1) but 2.11.0-6.7 is installed Breaks: libfontconfig1:i386 (!= 2.11.94-0ubuntu1.1) but 2.11.0-6.7 is installed libfontconfig1:i386 : Breaks: libfontconfig1 (!= 2.11.0-6.7) but 2.11.94-0ubuntu1.1 is installed libfontconfig1-dev : Depends: libfontconfig1 (= 2.11.0-6.7) but 2.11.94-0ubuntu1.1 is installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies

fontconfig 2.11.94 从来没有出现在 Debian 中。你是从哪里装的?从 Ubuntu 那里手动拿来装的吗?快卸掉吧,退回 Debian 的 2.11.0。

没能卸掉…

sudo apt remove fontconfig Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: firefox-esr : Depends: fontconfig fonts-cantarell : Depends: fontconfig libfontconfig1 : Depends: fontconfig-config (= 2.11.94-0ubuntu1.1) but 2.11.0-6.7 is to be installed Breaks: libfontconfig1:i386 (!= 2.11.94-0ubuntu1.1) but 2.11.0-6.7 is to be installed libfontconfig1:i386 : Breaks: libfontconfig1 (!= 2.11.0-6.7) but 2.11.94-0ubuntu1.1 is to be installed libfontconfig1-dev : Depends: libfontconfig1 (= 2.11.0-6.7) but 2.11.94-0ubuntu1.1 is to be installed libpango-1.0-0 : Depends: fontconfig (>= 2.1.91) libqt5gui5 : Depends: fontconfig libqtgui4 : Depends: fontconfig libqtgui4:i386 : Depends: fontconfig:i386 libreoffice-core : Depends: fontconfig E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

[quote=“Pirate”]没能卸掉…

sudo apt remove fontconfig Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: firefox-esr : Depends: fontconfig fonts-cantarell : Depends: fontconfig libfontconfig1 : Depends: fontconfig-config (= 2.11.94-0ubuntu1.1) but 2.11.0-6.7 is to be installed Breaks: libfontconfig1:i386 (!= 2.11.94-0ubuntu1.1) but 2.11.0-6.7 is to be installed libfontconfig1:i386 : Breaks: libfontconfig1 (!= 2.11.0-6.7) but 2.11.94-0ubuntu1.1 is to be installed libfontconfig1-dev : Depends: libfontconfig1 (= 2.11.0-6.7) but 2.11.94-0ubuntu1.1 is to be installed libpango-1.0-0 : Depends: fontconfig (>= 2.1.91) libqt5gui5 : Depends: fontconfig libqtgui4 : Depends: fontconfig libqtgui4:i386 : Depends: fontconfig:i386 libreoffice-core : Depends: fontconfig E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). [/quote]

可以考虑使用 dpkg --force-all 选项来强制卸载, 然后马上用新的包来替换。
关于这个参数的具体解释可以看 man dpkg

很多软件如firefox-es依赖于fontconfig,看来不能卸载。

要全体 fontconfig 相关软件集体降级,有很多方法,aptitude 会比较方便。

同没装上。懒得折腾了

如果在用 Debian 9,请从社区源安装。Debian 9 上面原始安装包是装不上的。

请参考 http://forum.ubuntu.org.cn/viewtopic.php?f=165&t=482755

+1 再补一个社区源的链接吧 https://repo.debiancn.org

2 个赞

你给的这个 Ubuntu 中文论坛的链接失效了

我刚连了一下。请再试试。

貌似在手机上有问题

要安装Ubuntu14.04的版本。其余版本安装不上,或者使用社区源内的安装包

debian安装网易云解决依赖问题
手动去除依赖试试。