尝试覆盖...这与包的其他实例不同

尝试覆盖...这与包的其他实例不同

我尝试使用官方安装程序在 ubuntu 16.10 中升级英特尔显卡。解压的最后阶段libcairo2出现错误(见图)。

当我升级时,我也收到同样的错误:

Preparing to unpack .../0-libcairo2_1.15.2-0intel1_amd64.deb ...
Unpacking libcairo2:amd64 (1.15.2-0intel1) over (1.15.2-0intel1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-aYhdFd/0 libcairo2_1.15.2-0intel1_amd64.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libcairo2/changelog.Debian.gz', which is different from other instances of package libcairo2:amd64
Preparing to unpack .../1-libcairo2_1.15.2-0intel1_i386.deb ...
Unpacking libcairo2:i386 (1.15.2-0intel1) over (1.15.2-0intel1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-aYhdFd/1-libcairo2_1.15.2-0intel1_i386.deb (--unpack):
trying to overwrite shared '/usr/share/doc/libcairo2/changelog.Debian.gz', which is different from other instances of package libcairo2:i386
Errors were encountered while processing:
/tmp/apt-dpkg-install-aYhdFd/0-libcairo2_1.15.2-0intel1_amd64.deb
/tmp/apt-dpkg-install-aYhdFd/1-libcairo2_1.15.2-0intel1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

看起来libcairo发布中存在冲突;如果是,如何解决?

在此处输入图片描述

答案1

删除更改日志文件对我有帮助。(如果您愿意,您可以进行备份,但它只是一个更改日志文件。)

sudo rm /usr/share/doc/libcairo2/changelog.Debian.gz

然后再次尝试更新。我通过以下方式进行更新;

sudo apt-get update

进而

sudo apt-get upgrade

您可以使用英特尔更新工具再试一次。

答案2

我遇到了类似的问题libmysqlclient21

解决方案在 Debian Bug Report 中发现。下面的命令帮助我修复了这个问题:

sudo apt-get install -f -o Dpkg::Options::="--force-overwrite" libmysqlclient21

然后继续正常升级过程。

相关内容