"E: Internal Error, Could not early remove linux-libc-dev" in multiarch chroot

Bug #802901 reported by Marcin Juszkiewicz
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
High
Michael Vogt
Oneiric
Fix Released
High
Michael Vogt

Bug Description

I am playing with MultiArch toolchain and got interesting bug from APT.

How to reproduce:

1. create fresh oneiric chroot
2. follow https://wiki.ubuntu.com/MultiarchHowto and enable 'armel' architecture
3. run "apt-get install libpng-dev:armel" - it will install gcc-4.6:armel binutils:armel and lot of *-dev:armel packages
4. run "file /usr/bin/gcc-4.6" to check is it ARM binary ("/usr/bin/gcc-4.6: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped")
5. run "apt-get install gcc-4.6"

You should get something like this:
root@lumpek:/# apt-get install gcc-4.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  binutils cpp-4.6 libc6-dev libcloog-ppl0 libgmp10 libgmpxx4ldbl libgomp1 libmpc2 libmpfr4 libppl-c4 libppl9 libpwl5 libquadmath0 linux-libc-dev
Suggested packages:
  binutils-doc gcc-4.6-locales gcc-4.6-multilib libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath0-dbg libmudflap0-dbg binutils-gold
  glibc-doc manpages-dev
Recommended packages:
  gcc c-compiler
The following packages will be REMOVED:
  binutils:armel cpp:armel cpp-4.6:armel gcc:armel gcc-4.6:armel libcloog-ppl0:armel libgmp10:armel libgmpxx4ldbl:armel libmpc2:armel libmpfr4:armel
  libppl-c4:armel libppl9:armel libpwl5:armel
The following NEW packages will be installed:
  binutils cpp-4.6 gcc-4.6 libc6-dev libcloog-ppl0 libgmp10 libgmpxx4ldbl libgomp1 libmpc2 libmpfr4 libppl-c4 libppl9 libpwl5 libquadmath0 linux-libc-dev
0 upgraded, 15 newly installed, 13 to remove and 0 not upgraded.
Need to get 21.0 MB of archives.
After this operation, 34.6 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://archive.ubuntu.com/ubuntu/ oneiric/main libgomp1 amd64 4.6.0-14ubuntu1 [25.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ oneiric/main libquadmath0 amd64 4.6.0-14ubuntu1 [126 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ oneiric/main binutils amd64 2.21.52.20110606-1ubuntu1 [2584 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ oneiric/main libgmp10 amd64 2:5.0.1+dfsg-7ubuntu2 [250 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ oneiric/main libgmpxx4ldbl amd64 2:5.0.1+dfsg-7ubuntu2 [10.7 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ oneiric/main libppl9 amd64 0.11.2-3ubuntu1 [448 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ oneiric/main libpwl5 amd64 0.11.2-3ubuntu1 [13.0 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ oneiric/main libppl-c4 amd64 0.11.2-3ubuntu1 [1566 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ oneiric/main libcloog-ppl0 amd64 0.15.9-3 [62.0 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ oneiric/main libmpfr4 amd64 3.0.1-3 [189 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ oneiric/main libmpc2 amd64 0.9-3 [39.5 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ oneiric/main cpp-4.6 amd64 4.6.0-14ubuntu1 [4780 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ oneiric/main gcc-4.6 amd64 4.6.0-14ubuntu1 [7532 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ oneiric/main linux-libc-dev amd64 3.0-2.3 [804 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ oneiric/main libc6-dev amd64 2.13-6ubuntu2 [2611 kB]
Fetched 21.0 MB in 16s (1260 kB/s)
E: Internal Error, Could not early remove linux-libc-dev

Removal of "gcc-4.6:armel binutils:armel" and then trying to install "gcc-4.6" ends with same bug.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: apt 0.8.14.1ubuntu7
ProcVersionSignature: Ubuntu 3.0-2.3-generic 3.0.0-rc4
Uname: Linux 3.0-2-generic x86_64
Architecture: amd64
Date: Tue Jun 28 10:48:27 2011
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=pl_PL.UTF-8
 LANGUAGE=pl_PL:en
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Installing amd64 package by hand using dpkg removed the issue.

Revision history for this message
Riku Voipio (riku-voipio) wrote :

I can get this now with a fresh oneiric chroot with multiarch enabled and no armel packages installed by just:

-snip-
apt-get install linux-libc-dev:armel
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  linux-libc-dev:armel
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/802 kB of archives.
After this operation, 4530 kB of additional disk space will be used.
E: Internal Error, Could not early remove linux-libc-dev
-snip-

manual dpkg -i linux-libc-dev:armel*deb will work fine

Changed in apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Stefano Rivera (stefanor) wrote :

Also seen attempting to install skype:i386 on an amd64 box (I saw it mentioned on the planet that this is now possible):
E: Internal Error, Could not early remove libaudio2
After dpkg --remove --force-depends libaudio2:
E: Internal Error, Could not early remove liblcms1
After removing *that*, skype:i386 was installable (but I ran into a bunch of "is different from the same file on the system")...

Revision history for this message
Steve Langasek (vorlon) wrote :

Chris Halse Rogers has reported this issue hitting him for libgl1-mesa-glx:i386 as well.

Stefano, please file bugs against any packages (and feel free to subscribe me) where you ran into "is different from the same file on the system"; any package tagged Multi-Arch: same should be free of such inconsistencies, and where it's not we need to fix them.

Changed in apt (Ubuntu):
importance: Undecided → High
Revision history for this message
Steve Langasek (vorlon) wrote :

Reproduced for libgl1-mesa-glx:i386.

Chris hypothesizes on IRC that it may be related to libgl1-mesa-glx having a Conflicts/Replaces/Provides libgl1, and apt not knowing the right way to handle that. Looking back, I see that linux-libc-dev has the same thing for virtual package "linux-kernel-headers". dpkg special-cases this kind of self-conflicts between multi-arch packages of different architectures; apt might need to as well.

$ sudo apt-get install libgl1-mesa-glx:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  gcc-4.6-base:i386 libc6:i386 libdrm2:i386 libgcc1:i386 libglapi-mesa:i386
  libx11-6:i386 libxau6:i386 libxcb1:i386 libxdamage1:i386 libxdmcp6:i386
  libxext6:i386 libxfixes3:i386 libxxf86vm1:i386
Suggested packages:
  glibc-doc:i386 locales:i386
Recommended packages:
  libgl1-mesa-dri:i386
The following NEW packages will be installed:
  gcc-4.6-base:i386 libc6:i386 libdrm2:i386 libgcc1:i386 libgl1-mesa-glx:i386
  libglapi-mesa:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxdamage1:i386
  libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxxf86vm1:i386
0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4920 kB of archives.
After this operation, 13.5 MB of additional disk space will be used.
Do you want to continue [Y/n]?
E: Internal Error, Could not early remove libgl1-mesa-glx

Revision history for this message
Steve Langasek (vorlon) wrote :

And libaudio2 has C/R/P: nas-lib.

Changed in apt (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
milestone: none → ubuntu-11.10-beta-1
Michael Vogt (mvo)
Changed in apt (Ubuntu Oneiric):
status: Confirmed → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

apt (0.8.16~exp5ubuntu6) oneiric; urgency=low

  [ Michael Vogt
  * merged lp:~jr/ubuntu/oneiric/apt/bzr-get-rename, thanks to
    Jonathan Riddell

  [ David Kalnischkies ]
  * lots of cppcheck fixes
  * apt-pkg/packagemanager.cc, apt-pkg/pkgcache.cc:
    - ignore "self"-conflicts for all architectures of a package
      instead of just for the architecture of the package locked at
      in the ordering of installations too (Closes: #802901)

 -- Michael Vogt <email address hidden> Wed, 17 Aug 2011 11:32:58 +0200

Changed in apt (Ubuntu Oneiric):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers