Package manager failing

After installing some debian packages as:
libice6_1.0.9-1+deb8u1_i386.deb
libsm6_1.2.2-1+b1_i386.deb
libxp6_1.0.2-2_i386.deb
libxt6_1.1.4-1+b1_i386.deb
There appeared some problems with the package manager as:
jari@ENVY-17:~/Downloads$ sudo apt upgrade
[sudo] password for jari:
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:
libice6 : Breaks: libice6:i386 (!= 2:1.0.9-2) but 2:1.0.9-1+deb8u1 is installed
libice6:i386 : Breaks: libice6 (!= 2:1.0.9-1+deb8u1) but 2:1.0.9-2 is installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
jari@ENVY-17:~/Downloads$ sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following additional packages will be installed:
libice6:i386
The following packages will be upgraded:
libice6:i386
1 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
4 not fully installed or removed.
Need to get 0 B/42.6 kB of archives.
After this operation, 9,216 B disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 461526 files and directories currently installed.)
Preparing to unpack …/libice6_2%3a1.0.9-2_i386.deb …
Unpacking libice6:i386 (2:1.0.9-2) over (2:1.0.9-1+deb8u1) …
dpkg: error processing archive /var/cache/apt/archives/libice6_2%3a1.0.9-2_i386.deb (–unpack):
trying to overwrite shared ‘/usr/share/doc/libice6/changelog.Debian.gz’, which is different from other instances of package libice6:i386
Errors were encountered while processing:
/var/cache/apt/archives/libice6_2%3a1.0.9-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

And it seems the package manager can not fully recover from this issue…

If I remove the libice:i386 it seems to help:
jari@ENVY-17:~/Downloads$ sudo apt remove libice6:i386
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
libice6:i386
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 127 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 461525 files and directories currently installed.)
Removing libice6:i386 (2:1.0.9-1+deb8u1) …
Setting up libice6:amd64 (2:1.0.9-2) …
Processing triggers for libc-bin (2.28-0ubuntu1+zorin4) …
W: APT had planned for dpkg to do more than it reported back (2 vs 6).
Affected packages: libice6:amd64

But this case I would not have the required package anymore and it would not be then good option to do this either…

Somehow there appeared also package with illegal character ‘%’ in its name:
libice6_2%3a1.0.9-2_i386.deb
causing some trouble also.

jari@ENVY-17:~/Downloads$ sudo apt install x11-xkb-utils:i386
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libice6:i386 libsm6:i386 libxaw7:i386 libxkbfile1:i386 libxmu6:i386 libxpm4:i386 libxt6:i386
The following packages will be REMOVED:
x11-xkb-utils
The following NEW packages will be installed:
libice6:i386 libsm6:i386 libxaw7:i386 libxkbfile1:i386 libxmu6:i386 libxpm4:i386 libxt6:i386 x11-xkb-utils:i386
0 upgraded, 8 newly installed, 1 to remove and 0 not upgraded.
Need to get 680 kB/723 kB of archives.
After this operation, 1537 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic/main i386 libsm6 i386 2:1.2.2-1 [14.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main i386 libxt6 i386 1:1.1.5-1 [164 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main i386 libxmu6 i386 2:1.1.2-2 [48.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main i386 libxpm4 i386 1:3.5.12-1 [35.8 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main i386 libxaw7 i386 2:1.0.13-1 [182 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main i386 libxkbfile1 i386 1:1.0.9-2 [68.9 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 x11-xkb-utils i386 7.7+3ubuntu0.18.04.1 [166 kB]
Fetched 680 kB in 2s (335 kB/s)
(Reading database … 461523 files and directories currently installed.)
Preparing to unpack …/0-libice6_2%3a1.0.9-2_i386.deb …
Unpacking libice6:i386 (2:1.0.9-2) …
dpkg: error processing archive /tmp/apt-dpkg-install-7lNDMr/0-libice6_2%3a1.0.9-2_i386.deb (–unpack):
trying to overwrite shared ‘/usr/share/doc/libice6/changelog.Debian.gz’, which is different from other instances of package libice6:i386
Selecting previously unselected package libsm6:i386.
Preparing to unpack …/1-libsm6_2%3a1.2.2-1_i386.deb …
Unpacking libsm6:i386 (2:1.2.2-1) …
dpkg: error processing archive /tmp/apt-dpkg-install-7lNDMr/1-libsm6_2%3a1.2.2-1_i386.deb (–unpack):
trying to overwrite shared ‘/usr/share/doc/libsm6/changelog.Debian.gz’, which is different from other instances of package libsm6:i386
Selecting previously unselected package libxt6:i386.
Preparing to unpack …/2-libxt6_1%3a1.1.5-1_i386.deb …
Unpacking libxt6:i386 (1:1.1.5-1) …
dpkg: error processing archive /tmp/apt-dpkg-install-7lNDMr/2-libxt6_1%3a1.1.5-1_i386.deb (–unpack):
trying to overwrite shared ‘/usr/share/doc/libxt6/changelog.Debian.gz’, which is different from other instances of package libxt6:i386
Selecting previously unselected package libxmu6:i386.
Preparing to unpack …/3-libxmu6_2%3a1.1.2-2_i386.deb …
Unpacking libxmu6:i386 (2:1.1.2-2) …
Selecting previously unselected package libxpm4:i386.
Preparing to unpack …/4-libxpm4_1%3a3.5.12-1_i386.deb …
Unpacking libxpm4:i386 (1:3.5.12-1) …
Selecting previously unselected package libxaw7:i386.
Preparing to unpack …/5-libxaw7_2%3a1.0.13-1_i386.deb …
Unpacking libxaw7:i386 (2:1.0.13-1) …
Selecting previously unselected package libxkbfile1:i386.
Preparing to unpack …/6-libxkbfile1_1%3a1.0.9-2_i386.deb …
Unpacking libxkbfile1:i386 (1:1.0.9-2) …
Selecting previously unselected package x11-xkb-utils:i386.
Preparing to unpack …/7-x11-xkb-utils_7.7+3ubuntu0.18.04.1_i386.deb …
Unpacking x11-xkb-utils:i386 (7.7+3ubuntu0.18.04.1) over (7.7+3ubuntu0.18.04.1) …
Errors were encountered while processing:
/tmp/apt-dpkg-install-7lNDMr/0-libice6_2%3a1.0.9-2_i386.deb
/tmp/apt-dpkg-install-7lNDMr/1-libsm6_2%3a1.2.2-1_i386.deb
/tmp/apt-dpkg-install-7lNDMr/2-libxt6_1%3a1.1.5-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The problem seem related to the i386 -packages…

Additionally somehow it generate illegal package name with illegal character: ‘%’.

What does Synaptic say about the broken packages?

I don’t know Synaptic.

Trying to fix the installation fails:

jari@ENVY-17:~$ sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following additional packages will be installed:
libice6:i386 libsm6:i386 libxt6:i386
The following NEW packages will be installed:
libice6:i386 libsm6:i386 libxt6:i386
0 upgraded, 3 newly installed, 0 to remove and 12 not upgraded.
5 not fully installed or removed.
Need to get 0 B/222 kB of archives.
After this operation, 639 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 461532 files and directories currently installed.)
Preparing to unpack …/libice6_2%3a1.0.9-2_i386.deb …
Unpacking libice6:i386 (2:1.0.9-2) …
dpkg: error processing archive /var/cache/apt/archives/libice6_2%3a1.0.9-2_i386.deb (–unpack):
trying to overwrite shared ‘/usr/share/doc/libice6/changelog.Debian.gz’, which is different from other instances of package libice6:i386
Preparing to unpack …/libsm6_2%3a1.2.2-1_i386.deb …
Unpacking libsm6:i386 (2:1.2.2-1) …
dpkg: error processing archive /var/cache/apt/archives/libsm6_2%3a1.2.2-1_i386.deb (–unpack):
trying to overwrite shared ‘/usr/share/doc/libsm6/changelog.Debian.gz’, which is different from other instances of package libsm6:i386
Preparing to unpack …/libxt6_1%3a1.1.5-1_i386.deb …
Unpacking libxt6:i386 (1:1.1.5-1) …
dpkg: error processing archive /var/cache/apt/archives/libxt6_1%3a1.1.5-1_i386.deb (–unpack):
trying to overwrite shared ‘/usr/share/doc/libxt6/changelog.Debian.gz’, which is different from other instances of package libxt6:i386
Errors were encountered while processing:
/var/cache/apt/archives/libice6_2%3a1.0.9-2_i386.deb
/var/cache/apt/archives/libsm6_2%3a1.2.2-1_i386.deb
/var/cache/apt/archives/libxt6_1%3a1.1.5-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

You said originally that you installed some deb packages.
How did you install? Where did you get them from? What were you trying to achieve from installing them?

This topic was automatically closed after 14 days. New replies are no longer allowed.