Dec 01, 2016 - 11:18am
I tried to upgrade Intel graphics in ubuntu 16.10 using the official installer. The last stage of unpacking libcairo2 produces an error (see figure).
When I do upgrade I get the same error also:
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:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hi - just got back from a couple of weeks off so ony just saw this - sounds like a multi-arch problem (ie you have both 32 and 64 bit versions of the package installed, but they're clashing) - this _should_ work but requires all the non-binary files in each package to be absolutely identical, which can break sometimes. Can you check that the versions are coming from the same repository? The output of
diff -u <(apt-cache policy libcairo2:amd64) <(apt-cache policy libcairo2:i386)
would be helpful here.