dpkg安装deb缺少依赖包的解决方法--Ubuntu 16.04 LTS 安装网易云音乐

一、去网易云音乐官网下载对应的安装包.
我下载的是netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb
二、开始安装

sudo dpkg -i netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb

报如下信息:

Selecting previously unselected package netease-cloud-music.
(Reading database ... 216944 files and directories currently installed.)
Preparing to unpack netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb ...
Unpacking netease-cloud-music (1.0.0-2) ...
dpkg: dependency problems prevent configuration of netease-cloud-music:
 netease-cloud-music depends on libqt5x11extras5 (>= 5.1.0); however:
  Package libqt5x11extras5 is not installed.
 netease-cloud-music depends on libqt5multimedia5-plugins; however:
  Package libqt5multimedia5-plugins is not installed.

dpkg: error processing package netease-cloud-music (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Errors were encountered while processing:
 netease-cloud-music

解决办法:
终端输入:sudo apt-get -f -y install

再重新安装:

sudo dpkg -i netease-cloud-music_1.0.0-2_amd64_ubuntu16.04.deb

至此,安装完成。

其中关键在处理 dependency problems:

sudo apt-get -f -y install

参考:

http://www.cnblogs.com/horizonli/p/5179224.html

你可能感兴趣的:(linux)