$ LANG= sudo apt-get install --reinstall libpthread-stubs0{,:i386} libpthread-stubs0-dev
[...]
The following NEW packages will be installed:
libpthread-stubs0:i386
Preparing to replace libpthread-stubs0 0.3-2.1ubuntu1 (using .../libpthread-stubs0_0.3-2.1ubuntu1_amd64.deb) ...
Unpacking replacement libpthread-stubs0 ...
Selecting previously unselected package libpthread-stubs0:i386.
Unpacking libpthread-stubs0:i386 (from .../libpthread-stubs0_0.3-2.1ubuntu1_i386.deb) ...
Preparing to replace libpthread-stubs0-dev 0.3-2.1ubuntu1 (using .../libpthread-stubs0-dev_0.3-2.1ubuntu1_amd64.deb) ...
Unpacking replacement libpthread-stubs0-dev ...
Setting up libpthread-stubs0 (0.3-2.1ubuntu1) ...
Setting up libpthread-stubs0:i386 (0.3-2.1ubuntu1) ...
Setting up libpthread-stubs0-dev (0.3-2.1ubuntu1) ...
$ LANG= sudo apt-get install --reinstall libpthread-stubs0-dev
[...]
Preparing to replace libpthread-stubs0-dev 0.3-2.1ubuntu1 (using .../libpthread-stubs0-dev_0.3-2.1ubuntu1_amd64.deb) ...
Unpacking replacement libpthread-stubs0-dev ...
(Noting disappearance of libpthread-stubs0:i386, which has been completely replaced.)
Setting up libpthread-stubs0-dev (0.3-2.1ubuntu1) ...
The following package disappeared from your system as
all files have been overwritten by other packages:
libpthread-stubs0
Note: This is done automatic and on purpose by dpkg.
While it works with the original test case now:
sudo apt-get install --reinstall libpthread- stubs0{ ,:i386} libpthread- stubs0- dev
it still fails when you do it separately:
$ LANG= sudo apt-get install --reinstall libpthread- stubs0{ ,:i386} libpthread- stubs0- dev stubs0: i386 stubs0_ 0.3-2.1ubuntu1_ amd64.deb) ... stubs0: i386. stubs0: i386 (from .../libpthread- stubs0_ 0.3-2.1ubuntu1_ i386.deb) ... stubs0- dev 0.3-2.1ubuntu1 (using .../libpthread- stubs0- dev_0.3- 2.1ubuntu1_ amd64.deb) ... stubs0- dev ... stubs0: i386 (0.3-2.1ubuntu1) ... stubs0- dev (0.3-2.1ubuntu1) ...
[...]
The following NEW packages will be installed:
libpthread-
Preparing to replace libpthread-stubs0 0.3-2.1ubuntu1 (using .../libpthread-
Unpacking replacement libpthread-stubs0 ...
Selecting previously unselected package libpthread-
Unpacking libpthread-
Preparing to replace libpthread-
Unpacking replacement libpthread-
Setting up libpthread-stubs0 (0.3-2.1ubuntu1) ...
Setting up libpthread-
Setting up libpthread-
$ LANG= sudo apt-get install --reinstall libpthread- stubs0- dev stubs0- dev 0.3-2.1ubuntu1 (using .../libpthread- stubs0- dev_0.3- 2.1ubuntu1_ amd64.deb) ... stubs0- dev ... stubs0: i386, which has been completely replaced.) stubs0- dev (0.3-2.1ubuntu1) ...
[...]
Preparing to replace libpthread-
Unpacking replacement libpthread-
(Noting disappearance of libpthread-
Setting up libpthread-
The following package disappeared from your system as
all files have been overwritten by other packages:
libpthread-stubs0
Note: This is done automatic and on purpose by dpkg.