[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]
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
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).
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