ubuntu 17.04安装网易云音乐linux版依赖包出错的解决办法
2017-04-20 22:10
661 查看
题记
博主最近手贱把Ubuntu从16.10升级到了17.04然后网易云音乐就没法用了。。。重新安装deb包然后给我报错这个
libqt5libqgtk2依赖缺失
然后我就去装这个依赖吧,但是这个依赖已经改名了,you kown
改成了这个
qt5-style-plugins
可恨的Ubuntu,社区开始喜欢你的界面的时候你跟我说你要停止开发了。。。
没法,17.04没有这个依赖包,那怎么办,自己写一个依赖包,我一开始打开了云音乐的deb包想改这个依赖,但是找不到对应的目录,然后只能自己造一个
libqt5libqgtk2装了
我也是参考了很多大神和前人的博文,然后照猫画虎的做出了一个deb包,下面进入正题
1.安装制作包软件
其实我也没研究过这个软件,哈哈哈哈直接上代码
hero@hero-K45VD:~/Downloads$ sudo apt install equivs
2.制作依赖的deb包
hero@hero-K45VD:~/Downloads$ equivs-control libqt5libqgtk2
我是在下载目录制作的这个包,然后你们可以改位置
这个命令执行完,就会在这个目录下多出来了一个叫
libqt5libqgtk2的文件
然后我们先卸载云音乐,虽然不卸载也能用,但是就apt一直报错要你解决依赖的问题,所以我还是先卸载了再说吧。
然后编辑这个文件
vim libqt5libqgtk2
然后输出是这样的
### Commented entries have reasonable defaults. ### Uncomment to edit them. # Source: <source package name; defaults to package name> Section: misc Priority: optional # Homepage: <enter URL here; no default> Standards-Version: 3.9.2 Package: libqt5libqgtk2 # Version: <enter version here; defaults to 1.0> # Maintainer: Your Name <yourname@example.com> # Pre-Depends: <comma-separated list of packages> # Depends: <comma-separated list of packages> # Recommends: <comma-separated list of packages> # Suggests: <comma-separated list of packages> Provides: qt5-style-plugins # Replaces: <comma-separated list of packages> Architecture: all # Multi-Arch: <one of: foreign|same|allowed> # Copyright: <copyright file; defaults to GPL2> # Changelog: <changelog file; defaults to a generic changelog> # Readme: <README.Debian file; defaults to a generic one> # Extra-Files: <comma-separated list of additional files for the doc directory> # Files: <pair of space-separated paths; First is file to include, second is destination> # <more pairs, if there's more than one file to include. Notice the starting space> Description: just for net and not
这是我改过的,大家照着改一下就行了,如果你试着挽救你的系统然后安装了
qt5-style-plugins,那也是先卸载了吧,不卸载会报错的哈哈
然后我们直接打包成deb
hero@hero-K45VD:~/Downloads$ equivs-build libqt5libqgtk2 dh_testdir dh_testroot dh_prep dh_testdir dh_testroot dh_install dh_install: Compatibility levels before 9 are deprecated (level 7 in use) dh_installdocs dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use) dh_installchangelogs dh_compress dh_fixperms dh_installdeb dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use) dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package 'libqt5libqgtk2' in '../libqt5libqgtk2_1.0_all.deb'. The package has been created. Attention, the package has been created in the current directory, not in ".." as indicated by the message above! hero@hero-K45VD:~/Downloads$
然后这是这个目录下就会有个
libqt5libqgtk2_1.0_all.deb包,然后我们安装
hero@hero-K45VD:~/Downloads$ sudo dpkg --install libqt5libqgtk2_1.0_all.deb (Reading database ... 261318 files and directories currently installed.) Preparing to unpack libqt5libqgtk2_1.0_all.deb ... Unpacking libqt5libqgtk2 (1.0) over (1.0) ... Setting up libqt5libqgtk2 (1.0) ...
然后再安装网易云就不会报错了
hero@hero-K45VD:~/Downloads$ sudo dpkg --install netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb Selecting previously unselected package netease-cloud-music. (Reading database ... 261318 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) ... Setting up netease-cloud-music (1.0.0) ... Processing triggers for hicolor-icon-theme (0.15-1) ... Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.13.3-6ubuntu5) ... Processing triggers for desktop-file-utils (0.23-1ubuntu2) ... Processing triggers for mime-support (3.60ubuntu1) ...
大概就是这样,我待会会贴出这个
libqt5libqgtk2.deb包的百度云地址,省的大家再去制作浪费时间了
链接: https://pan.baidu.com/s/1boJpbqB 密码: 2iyv
相关文章推荐
- ubuntu17.04或linux4.0.x安装VMware,VMware启动失败解决办法
- ubuntu17.04 安装网易云音乐解决依赖问题
- 解决Kubuntu 17.04和Ubuntu17.04无法安装网易云音乐 netease-cloud-music : 依赖: libqt5libqgtk2 但无法安装它
- 【Linux】Ubuntu gcc编译安装fcgi出错的解决办法
- ubuntu安装时包依赖出错解决
- 安装Linux的ubuntu系统时弄坏引导扇区的问题及自己的解决办法
- ubuntu apt 安装软件时 出现(--configure)时出错解决办法
- 64位Ubuntu 14.04安装“ibc6-i386”依赖库解决办法。
- 虚拟机ubuntu17.04安装vmware-tools时,显示找不到ifconfig的解决办法
- ubuntu14.04安装python-dev提示版本依赖的解决办法
- 在win7系统下安装把Ubuntu17.04安装在另一个硬盘开机无法进入Ubuntu问题的一种解决办法。
- ubuntu下安装lxml依赖出错解决方法
- Ubuntu 12.04.5(64bit) valgrind的安装、缺少libc6-dbg的解决办法以及移植到arm-Linux嵌入式设备的步骤
- ubuntu 安装 WPS for Linux(ubuntu)字体配置(字体缺失解决办法)及卸载libreoffice
- 安装Ubuntu版本linux过程中没有提示设置root用户密码问题的解决办法
- ubuntu(linux)下安装openCV(ffmpeg导致的编译不通过的解决办法)
- ubuntu下安装lxml依赖出错解决方法
- Linux使用curl 方式安装docker-compose 后执行docker-compose version 检查安装是否成功时出错的解决办法
- ubuntu16.04 安装 lib32readline-gplv2-dev 出错,解决办法
- 【转】 ubuntu10.10中安装PPS for linux没有声音的解决办法