网易云音乐安装引发的问题

最大的社区版本,Ubuntu的发源地
回复
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

网易云音乐安装引发的问题

#1

帖子 yangdawei.hit » 2017-02-10 13:20

为了安装网易云音乐程序,因为缺少libfontconfig1(>= 2.11.94)而不能安装。目前debian中的版本是2.11.0-6.7版本的,我冒然安装了ubuntu中的2.11.94版本。结果目前的情况是这样的:

代码: 全选

sudo dpkg -l | grep libfontconfig1                  
pU  libfontconfig1:amd64                        2.11.94-0ubuntu1.1                   amd64        generic font configuration library - runtime
pF  libfontconfig1:i386                         2.11.0-6.7                           i386         generic font configuration library - runtime
pi  libfontconfig1-dev:amd64                    2.11.0-6.7                           amd64        generic font configuration library - development
导致网易云音乐没安装成,系统升级也出现的问题。

代码: 全选

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
 netease-cloud-music : Depends: libqt5multimedia5-plugins but it is not installed
                       Depends: libqt5multimediawidgets5 but it is not installed
                       Depends: libqt5libqgtk2 but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
现在想把libfontconfig1的版本降回来,或删除掉。删除是失败的,请求高手指教。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 网易云音乐安装引发的问题

#2

帖子 vickycq » 2017-02-10 13:31

基本思路:
1. 移除“ubuntu中的2.11.94版本”;
2. 使用 Debian 中文社区软件源打包的 netease-cloud-music_1.0.0-1
http://repo.debiancn.org/pool/main/n/ne ... oud-music/

建议执行以下步骤
1. 说明“安装了ubuntu中的2.11.94版本”的具体操作;
2. 将以下文件的内容贴到 paste.ubuntu.com,再把链接贴过来
/var/log/dpkg.log
/var/log/apt/history.log
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: 网易云音乐安装引发的问题

#3

帖子 yangdawei.hit » 2017-02-10 13:58

安装了ubuntu中的2.11.94版本:

下载了libfontconfig1_2.11.94-0ubuntu1.1_amd64.deb,然后dpkg -i 安装。

/var/log/dpkg.log
2017-02-10 13:14:01 upgrade netease-cloud-music:amd64 1.0.0-1 1.0.0
2017-02-10 13:14:01 status half-installed netease-cloud-music:amd64 1.0.0-1
2017-02-10 13:14:01 status triggers-pending hicolor-icon-theme:all 0.15-1
2017-02-10 13:14:01 status half-installed netease-cloud-music:amd64 1.0.0-1
2017-02-10 13:14:01 status triggers-pending desktop-file-utils:amd64 0.23-1
2017-02-10 13:14:01 status half-installed netease-cloud-music:amd64 1.0.0-1
2017-02-10 13:14:01 status triggers-pending mime-support:all 3.60
2017-02-10 13:14:05 status half-installed netease-cloud-music:amd64 1.0.0-1
2017-02-10 13:14:05 status unpacked netease-cloud-music:amd64 1.0.0
2017-02-10 13:14:05 status unpacked netease-cloud-music:amd64 1.0.0
2017-02-10 13:14:05 trigproc hicolor-icon-theme:all 0.15-1 <none>
2017-02-10 13:14:05 status half-configured hicolor-icon-theme:all 0.15-1
2017-02-10 13:14:05 status installed hicolor-icon-theme:all 0.15-1
2017-02-10 13:14:05 trigproc desktop-file-utils:amd64 0.23-1 <none>
2017-02-10 13:14:05 status half-configured desktop-file-utils:amd64 0.23-1
2017-02-10 13:14:05 status installed desktop-file-utils:amd64 0.23-1
2017-02-10 13:14:05 trigproc mime-support:all 3.60 <none>
2017-02-10 13:14:05 status half-configured mime-support:all 3.60
2017-02-10 13:14:05 status installed mime-support:all 3.60
2017-02-10 13:15:31 startup archives install
/var/log/apt/history.log
Start-Date: 2017-02-08 10:14:30
Commandline: apt upgrade
Requested-By: yangdawei (1000)
Upgrade: speech-dispatcher-espeak-ng:amd64 (0.8.6-1, 0.8.6-3), speech-dispatcher-audio-plugins:amd64 (0.8.6-1, 0.8.6-3), libspeechd2:amd64 (0.8.6-1, 0.8.6-3), speech-dispatcher:amd64 (0.8.6-1, 0.8.6-3), liba52-0.7.4:amd64 (0.7.4-18, 0.7.4-19), uget:amd64 (2.0.8-1, 2.0.8-1+b1), python3-speechd:amd64 (0.8.6-1, 0.8.6-3), browser-plugin-freshplayer-pepperflash:amd64 (0.3.5-1, 0.3.5-1+b1)
End-Date: 2017-02-08 10:14:40

Start-Date: 2017-02-08 10:59:46
Commandline: apt install giggle
Requested-By: yangdawei (1000)
Install: giggle:amd64 (0.7-3)
End-Date: 2017-02-08 10:59:49
只帖了最近的记录。
fxq_1998
帖子: 10
注册时间: 2017-02-09 0:02
系统: Ubuntu

Re: 网易云音乐安装引发的问题

#4

帖子 fxq_1998 » 2017-02-10 16:24

用debiancn的版本吧,网易官网那个包坑爹
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 网易云音乐安装引发的问题

#5

帖子 vickycq » 2017-02-10 23:09

yangdawei.hit 写了:只帖了最近的记录。
缺少一些关键信息,如 2017-02-10 13:14:01 之前的 dpkg 日志
目的:了解除 libfontconfig1_2.11.94-0ubuntu1.1_amd64 和 netease-cloud-music:amd64 1.0.0-1 以外还安装了哪些包。

猜测:还安装了 fontconfig-config (= 2.11.94-0ubuntu2)

若从未执行 apt-get -f install,受影响的包应该不多,这时我们主要关心 /var/log/dpkg.log (捣乱包是用 dpkg -i 安装的,apt 日志中不会留下踪迹)
如果执行过 apt-get -f install,受影响的包会多一些,需要了解 /var/log/apt/history.log 的内容。
yangdawei 写了:现在想把libfontconfig1的版本降回来,或删除掉。删除是失败的
由于 libfontconfig1 是桌面核心组件,不能移除,只能降级。降级的办法之一是 dpkg -i 安装老版包。

对于 stretch,可尝试执行以下指令:

代码: 全选

$ wget http://ftp.cn.debian.org/debian/pool/main/f/fontconfig/fontconfig-config_2.11.0-6.7_all.deb
$ wget http://ftp.cn.debian.org/debian/pool/main/f/fontconfig/libfontconfig1_2.11.0-6.7_amd64.deb
$ su
# dpkg -P netease-cloud-music
# dpkg -i fontconfig-config_2.11.0-6.7_all.deb
# dpkg -i fontconfig-config_2.11.0-6.7_all.deb
此时运行一些 apt 指令看是否还有“The following packages have unmet dependencies:” 一类信息。

若没有,到 http://repo.debiancn.org/pool/main/n/ne ... oud-music/ 下载 Debian 中文社区软件源打包的 netease-cloud-music 安装使用。

若有,可能在安装 netease-cloud-music 时还安装了其它包,或自动修复操作影响到其他包。单凭猜测确定有些繁琐。
考虑将以下文件的内容贴到 paste.ubuntu.com,不要节选。再把链接贴过来:
/var/log/dpkg.log
/var/log/apt/history.log

注意,如果“冒然安装了ubuntu中的2.11.94版本”发生在几天之前,有一定概率其相关日志已被挤到后面,如:
/var/log/dpkg.log.1.gz
/var/log/apt/history.log.1.gz
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
qy117121
论坛版主
帖子: 50538
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 网易云音乐安装引发的问题

#6

帖子 qy117121 » 2017-02-11 10:05

vickycq 写了:

代码: 全选

$ wget http://ftp.cn.debian.org/debian/pool/main/f/fontconfig/fontconfig-config_2.11.0-6.7_all.deb
$ wget http://ftp.cn.debian.org/debian/pool/main/f/fontconfig/libfontconfig1_2.11.0-6.7_amd64.deb
$ su
# dpkg -P netease-cloud-music
# dpkg -i fontconfig-config_2.11.0-6.7_all.deb
# dpkg -i fontconfig-config_2.11.0-6.7_all.deb
重复了,一个是libfontconfig1_2.11.0-6.7_amd64.deb才对
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: 网易云音乐安装引发的问题

#7

帖子 yangdawei.hit » 2017-02-12 16:27

安装fontconfig-config_2.11.0-6.7_all.deb正常,但安装libfontconfig1_2.11.0-6.7_amd64.deb出现如下问题:

代码: 全选

dpkg -i libfontconfig1_2.11.0-6.7_amd64.deb 
dpkg: warning: downgrading libfontconfig1:amd64 from 2.11.94-0ubuntu1.1 to 2.11.0-6.7
(Reading database ... 345831 files and directories currently installed.)
Preparing to unpack libfontconfig1_2.11.0-6.7_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.11.0-6.7) over (2.11.94-0ubuntu1.1) ...
dpkg: error processing archive libfontconfig1_2.11.0-6.7_amd64.deb (--install):
 trying to overwrite shared '/usr/share/doc/libfontconfig1/README.gz', which is different from other instances of package libfontconfig1:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libc-bin (2.24-9) ...
Errors were encountered while processing:
 libfontconfig1_2.11.0-6.7_amd64.deb
pastebinit命令似乎有问题,总是传不出去。手动帖一下吧。

/var/log/dpkg.log
http://paste.debian.net/913944/

/var/log/apt/history.log
http://paste.debian.net/913945/
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: 网易云音乐安装引发的问题

#8

帖子 yangdawei.hit » 2017-02-12 16:37

问题解决了。删除了/usr/share/doc/libfontconfig1/文件夹及其内容,就恢复正常了。

谢谢vickycq的指导。
上次由 yangdawei.hit 在 2017-02-12 16:48,总共编辑 1 次。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 网易云音乐安装引发的问题

#9

帖子 vickycq » 2017-02-12 16:45

此种情况也可尝试使用

代码: 全选

dpkg -i --force-overwrite libfontconfig1_2.11.0-6.7_amd64.deb 
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
yangdawei.hit
帖子: 245
注册时间: 2015-01-02 15:32
系统: Debian

Re: 网易云音乐安装引发的问题

#10

帖子 yangdawei.hit » 2017-02-12 22:27

又受益于vickycq的指导了。 :Haha
回复