[求指导]ubuntu16.04安装网易云音乐失败

Totem,mplayer,sopcast,realplayer,bmp
Manju丶saka
帖子: 15
注册时间: 2015-12-10 18:59
系统: Ubuntu15.10

Re: [求指导]ubuntu16.04安装网易云音乐失败

#16

帖子 Manju丶saka » 2016-05-26 17:29

qy117121 写了:http://packages.ubuntu.com/xenial/libqt5libqgtk2
16.04 的libqt5libqgtk2 依赖 libqt5gui5 (= 5.5.1+dfsg-16ubuntu7)
所以你系统已经安装的是正确的版本
不知道为什么你apt安装的依赖的版本不对,源列表没发现有什么不对,或者可以换个源看看

还有 http://packages.ubuntu.com/xenial/libqt ... a5-plugins
依赖也有问题
问题就出在源上,我从网易的源换成阿里的源之后就搞定了, 一直以为不同源只是速度不同,才发现用apt安装软件也是有差异的... :em06

代码: 全选

sudo apt-get install libqt5multimedia5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libqt5multimedia5 is already the newest version (5.5.1-4ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 97 not upgraded.

sudo gdebi netease-cloud-music_0.9.0-2_amd64.deb 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
Requires the installation of the following packages: libqgsttools-p1 libqt5libqgtk2 libqt5multimedia5-plugins 

netease cloud music player.
 netease cloud music player.
Do you want to install the software package? [y/N]:y
Get:1 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libqgsttools-p1 amd64 5.5.1-4ubuntu2 [65.4 kB]                                              
Get:2 http://mirrors.aliyun.com/ubuntu xenial/universe amd64 libqt5libqgtk2 amd64 5.5.1+dfsg-16ubuntu7 [86.3 kB]                                     
Get:3 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libqt5multimedia5-plugins amd64 5.5.1-4ubuntu2 [175 kB]                                     
Fetched 327 kB in 0s (0 B/s)                                                                                                                         
Selecting previously unselected package libqgsttools-p1:amd64.
(Reading database ... 221383 files and directories currently installed.)
Preparing to unpack .../libqgsttools-p1_5.5.1-4ubuntu2_amd64.deb ...
Unpacking libqgsttools-p1:amd64 (5.5.1-4ubuntu2) ...
Selecting previously unselected package libqt5libqgtk2:amd64.
Preparing to unpack .../libqt5libqgtk2_5.5.1+dfsg-16ubuntu7_amd64.deb ...
Unpacking libqt5libqgtk2:amd64 (5.5.1+dfsg-16ubuntu7) ...
Selecting previously unselected package libqt5multimedia5-plugins:amd64.
Preparing to unpack .../libqt5multimedia5-plugins_5.5.1-4ubuntu2_amd64.deb ...
Unpacking libqt5multimedia5-plugins:amd64 (5.5.1-4ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libqgsttools-p1:amd64 (5.5.1-4ubuntu2) ...
Setting up libqt5libqgtk2:amd64 (5.5.1+dfsg-16ubuntu7) ...
Setting up libqt5multimedia5-plugins:amd64 (5.5.1-4ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Selecting previously unselected package netease-cloud-music.
(Reading database ... 221407 files and directories currently installed.)
Preparing to unpack netease-cloud-music_0.9.0-2_amd64.deb ...
Unpacking netease-cloud-music (0.9.0-1) ...
Setting up netease-cloud-music (0.9.0-1) ...
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) ...
syakenni
帖子: 2
注册时间: 2016-08-29 22:26
系统: ubuntu

Re: [求指导]ubuntu16.04安装网易云音乐失败

#17

帖子 syakenni » 2016-11-27 22:17

Manju丶saka 写了:
qy117121 写了:二楼命令少了一位

代码: 全选

apt-get -f install 
dpkg -i 命令安装deb包不会自动安装依赖,所以要用上面的命令修复依赖

我更推荐用gdebi 安装deb包,会自动安装依赖的软件包
使用gdebi得到的也是一样的结果.

代码: 全选

sudo gdebi netease-cloud-music_0.9.0-2_amd64.deb 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done

netease cloud music player.
 netease cloud music player.
Do you want to install the software package? [y/N]:y
Selecting previously unselected package netease-cloud-music.
(Reading database ... 220641 files and directories currently installed.)
Preparing to unpack netease-cloud-music_0.9.0-2_amd64.deb ...
Unpacking netease-cloud-music (0.9.0-1) ...
dpkg: dependency problems prevent configuration of netease-cloud-music:
 netease-cloud-music depends on libqt5multimedia5-plugins; however:
  Package libqt5multimedia5-plugins 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 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


刚开始也是不行,使用gdebi执行后,就可以了。 多谢提问。


sudo gdebi netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb


Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
需要 移除 以下软件包: netease-cloud-music
需要安装以下软件包: libqgsttools-p1 libqt5gui5 libqt5libqgtk2 libqt5multimedia5-plugins libqt5multimediawidgets5

netease cloud music player.
netease cloud music player.
您是否想安装这个软件包?[y/N]:y
10% [正在连接 ftp.sjtu.edu.cn] 10% [正在连接 ftp.sjtu.edu.cn (202.38.97.230)] 10% [正在等待报头] Get:1 http://ftp.sjtu.edu.cn/ubuntu xenial-updates/main amd64 libqt5gui5 amd64 5.5.1+dfsg-16ubuntu7.2 [2287 kB]
96% [正在等待报头] 380 kBGet:2 http://ftp.sjtu.edu.cn/ubuntu xenial-updates/universe amd64 libqt5libqgtk2 amd64 5.5.1+dfsg-16ubuntu7.2 [86.3 kB]
Fetched 2373 kB in 6s (380 kB/s)
(正在读取数据库 ... 系统当前共安装有 251575 个文件和目录。)
正在卸载 netease-cloud-music (1.0.0) ...
正在处理用于 bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) 的触发器 ...
Rebuilding /usr/share/applications/bamf-2.index...
正在处理用于 gnome-menus (3.13.3-6ubuntu3.1) 的触发器 ...
正在处理用于 desktop-file-utils (0.22-1ubuntu5) 的触发器 ...
正在处理用于 mime-support (3.59ubuntu1) 的触发器 ...
正在处理用于 hicolor-icon-theme (0.15-0ubuntu1) 的触发器 ...
(正在读取数据库 ... 系统当前共安装有 251504 个文件和目录。)
正准备解包 .../libqt5gui5_5.5.1+dfsg-16ubuntu7.2_amd64.deb ...
正在将 libqt5gui5:amd64 (5.5.1+dfsg-16ubuntu7.2) 解包到 (5.5.1+dfsg-16ubuntu7.1) 上 ...
正在选中未选择的软件包 libqt5multimediawidgets5:amd64。
正准备解包 .../libqt5multimediawidgets5_5.5.1-4ubuntu2_amd64.deb ...
正在解包 libqt5multimediawidgets5:amd64 (5.5.1-4ubuntu2) ...
正在选中未选择的软件包 libqgsttools-p1:amd64。
正准备解包 .../libqgsttools-p1_5.5.1-4ubuntu2_amd64.deb ...
正在解包 libqgsttools-p1:amd64 (5.5.1-4ubuntu2) ...
正在选中未选择的软件包 libqt5libqgtk2:amd64。
正准备解包 .../libqt5libqgtk2_5.5.1+dfsg-16ubuntu7.2_amd64.deb ...
正在解包 libqt5libqgtk2:amd64 (5.5.1+dfsg-16ubuntu7.2) ...
正在选中未选择的软件包 libqt5multimedia5-plugins:amd64。
正准备解包 .../libqt5multimedia5-plugins_5.5.1-4ubuntu2_amd64.deb ...
正在解包 libqt5multimedia5-plugins:amd64 (5.5.1-4ubuntu2) ...
正在处理用于 libc-bin (2.23-0ubuntu3) 的触发器 ...
正在设置 libqt5gui5:amd64 (5.5.1+dfsg-16ubuntu7.2) ...
正在设置 libqt5multimediawidgets5:amd64 (5.5.1-4ubuntu2) ...
正在设置 libqgsttools-p1:amd64 (5.5.1-4ubuntu2) ...
正在设置 libqt5libqgtk2:amd64 (5.5.1+dfsg-16ubuntu7.2) ...
正在设置 libqt5multimedia5-plugins:amd64 (5.5.1-4ubuntu2) ...
正在处理用于 libc-bin (2.23-0ubuntu3) 的触发器 ...
正在选中未选择的软件包 netease-cloud-music。
(正在读取数据库 ... 系统当前共安装有 251534 个文件和目录。)
正准备解包 netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb ...
正在解包 netease-cloud-music (1.0.0) ...
正在设置 netease-cloud-music (1.0.0) ...
正在处理用于 hicolor-icon-theme (0.15-0ubuntu1) 的触发器 ...
正在处理用于 bamfdaemon (0.5.3~bzr0+16.04.20160701-0ubuntu1) 的触发器 ...
Rebuilding /usr/share/applications/bamf-2.index...
正在处理用于 gnome-menus (3.13.3-6ubuntu3.1) 的触发器 ...
正在处理用于 desktop-file-utils (0.22-1ubuntu5) 的触发器 ...
正在处理用于 mime-support (3.59ubuntu1) 的触发器 ...
wayne003
帖子: 37
注册时间: 2008-06-24 15:06

Re: [求指导]ubuntu16.04安装网易云音乐失败

#18

帖子 wayne003 » 2017-02-04 10:34

这里其实不光是源的问题,很大一部分都处在网易云音乐那个包的依赖,
我用的是ubuntu us的源因为libqt5gui5 版本已经更新到5.5.1了, 但是网易云音乐要求=5.4.2 一般软件包都会要求依赖大于某个版本,不知道这里为什么用了=,所以导致系统认为依赖出错。如果用dpkg --force-install 能够安装,而且运行也没问题。但是会在Apt里面标记为broken,不解决不让安装其他软件。
感觉必须赖网易,打包的时候没处理好。
解决方法
具体步骤
ar x netease-cloud-music.deb
vim ./control.tar.gz


选中./control
删除末尾的 libqt5libqgtk2
保存退出
最后
ar r netease-cloud-music.deb control.tar.gz


完成以后安装就行了
回复