dpkg安裝deb缺少依賴包的解決方法--Ubuntu 16.04 LTS 安裝網易雲音樂
阿新 • • 發佈:2019-01-25
一、去網易雲音樂官網下載對應的安裝包.
我下載的是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