[Bug 802901] [NEW] "E: Internal Error, Could not early remove linux-libc-dev" in multiarch chroot

Marcin Juszkiewicz 802901 at bugs.launchpad.net
Tue Jun 28 09:54:03 UTC 2011


Public bug reported:

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 at 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)

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug multiarch oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/802901

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

Status in “apt” package in Ubuntu:
  New

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 at 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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/802901/+subscriptions




More information about the foundations-bugs mailing list