[Bug 802985] Re: [lucid] /var/lib/dpkg/tmp.ci/preinst: 399: arithmetic expression: expecting EOF: "3.0-0-generic"

Enrique Hernández Bello 802985 at bugs.launchpad.net
Mon Jul 4 16:38:42 UTC 2011


I attach a patch for /usr/share/debootstrap/gutsy to support fake-uname
wrapper[1] for LD_PRELOAD and workaround this problem.

# HOWTO #

Compile fake-uname.so as shown here:
$ gcc -shared -fPIC uname.c -o /usr/local/lib/fake-uname.so -ldl

(-ldl parameter at last of command line is important)
(fake-uname.so at /usr/local/lib is also important according to following patch)

Patch /usr/share/debootstrap/gutsy:
$ sudo patch -p0 fake-uname_support.patch

Use debootstrap with UTS_RELEASE variable like:
$ UTS_RELEASE=2.6.32 debootstrap lucid target_dir/

[1]http://www.developpez.net/forums/d466836/systemes/linux/systeme
/changer-version-kernel-dynamiquement-chroot/#post2815469

** Patch added: "Patch for /usr/share/debootstrap/gutsy"
   https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/802985/+attachment/2190917/+files/fake-uname_support.patch

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

Title:
  [lucid] /var/lib/dpkg/tmp.ci/preinst: 399: arithmetic expression:
  expecting EOF: "3.0-0-generic"

Status in “debootstrap” package in Ubuntu:
  Triaged
Status in “eglibc” package in Ubuntu:
  Invalid
Status in “debootstrap” source package in Lucid:
  Invalid
Status in “eglibc” source package in Lucid:
  Triaged
Status in “debootstrap” source package in Maverick:
  Invalid
Status in “eglibc” source package in Maverick:
  Triaged
Status in “debootstrap” source package in Natty:
  Invalid
Status in “eglibc” source package in Natty:
  Triaged
Status in “debootstrap” source package in Hardy:
  Invalid
Status in “eglibc” source package in Hardy:
  Triaged

Bug description:
  Creating 'lucid' chroot is not possible under oneiric due to code
  which check for kernel version and bails out when 3.0 kernel is used
  on host machine:

  15:19 hrw at puchatek:chroots$ sudo chroot /home/hrw/HDD/devel/chroots/lucid-clean dpkg --force-depends --install /var/cache/apt/arch
  ives/libc6_2.11.1-0ubuntu7_amd64.deb
  (Reading database ... 344 files and directories currently installed.)
  Unpacking libc6 (from .../libc6_2.11.1-0ubuntu7_amd64.deb) ...
  [: 399: Illegal number: 3.0-0-generic
  /var/lib/dpkg/tmp.ci/preinst: 399: arithmetic expression: expecting EOF: "3.0-0-generic"
  dpkg: error processing /var/cache/apt/archives/libc6_2.11.1-0ubuntu7_amd64.deb (--install):
   subprocess new pre-installation script returned error exit status 2
  Errors were encountered while processing:
   /var/cache/apt/archives/libc6_2.11.1-0ubuntu7_amd64.deb

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




More information about the foundations-bugs mailing list