debootstrap --variant=fakechroot --arch=i386 impossible on amd64

Bug #1463840 reported by Ken Sharp
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
fakeroot (Ubuntu)
In Progress
Undecided
Ken Sharp

Bug Description

It is simply impossible to create an i386 chroot using fakechroot on a Trusty amd64 installation. This variant has been broken for a billion reasons since I started using Ubuntu.

$ fakeroot fakechroot debootstrap --arch=i386 --variant=fakechroot trusty ~/chroot-trusty-i386 http://localhost:3142/gb.archive.ubuntu.com/ubuntu/
[...]
W: Failure trying to run: chroot /home/test/chroot-trusty-i386 dpkg --force-depends --install /var/cache/apt/archives/base-passwd_3.5.33_i386.deb
W: See /home/test/chroot-trusty-i386/debootstrap/debootstrap.log for details

$ cat /home/test/chroot-trusty-i386/debootstrap/debootstrap.log
gpgv: Signature made Thu May 8 15:20:33 2014 BST using DSA key ID 437D05B5
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key <email address hidden>"
gpgv: Signature made Thu May 8 15:20:33 2014 BST using RSA key ID C0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <email address hidden>"
ERROR: ld.so: object 'libfakechroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
dpkg: error: requested operation requires superuser privilege

$ sudo apt-get install libfakechroot:i386
(Successful install)

Try again....

$ cat /home/test/chroot-trusty-i386/debootstrap/debootstrap.log
gpgv: Signature made Thu May 8 15:20:33 2014 BST using DSA key ID 437D05B5
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key <email address hidden>"
gpgv: Signature made Thu May 8 15:20:33 2014 BST using RSA key ID C0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <email address hidden>"
ERROR: ld.so: object 'libfakechroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
dpkg: error: requested operation requires superuser privilege
gpgv: Signature made Thu May 8 15:20:33 2014 BST using DSA key ID 437D05B5
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key <email address hidden>"
gpgv: Signature made Thu May 8 15:20:33 2014 BST using RSA key ID C0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <email address hidden>"
gpgv: Signature made Thu May 8 15:20:33 2014 BST using DSA key ID 437D05B5
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key <email address hidden>"
gpgv: Signature made Thu May 8 15:20:33 2014 BST using RSA key ID C0B21F32
gpgv: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <email address hidden>"
ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
dpkg: error: requested operation requires superuser privilege

And again...

$ fakeroot fakechroot -l /usr/lib/i386-linux-gnu/fakechroot/libfakechroot.so debootstrap --arch=i386 --variant=fakechroot trusty ~/chroot-trusty-i386 http://localhost:3142/gb.archive.ubuntu.com/ubuntu/
fakechroot: preload library not found, aborting.

I give up at this point.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: fakechroot 2.17.2-1
ProcVersionSignature: Ubuntu 3.13.0-53.89-generic 3.13.11-ckt19
Uname: Linux 3.13.0-53-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
Date: Wed Jun 10 14:31:18 2015
Dependencies:
 gcc-4.9-base 4.9.1-0ubuntu1
 libc6 2.19-0ubuntu6.6
 libfakechroot 2.17.2-1
 libgcc1 1:4.9.1-0ubuntu1
 multiarch-support 2.19-0ubuntu6.6
InstallationDate: Installed on 2014-11-11 (210 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitecture: all
SourcePackage: fakechroot
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ken Sharp (kennybobs) wrote :
Ken Sharp (kennybobs)
tags: added: i386 precise
tags: removed: i386 precise
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fakechroot (Ubuntu):
status: New → Confirmed
Revision history for this message
Ken Sharp (kennybobs) wrote :

Two years. Nobody cares.

Revision history for this message
Ken Sharp (kennybobs) wrote :

Still doesn't work.

$ fakeroot fakechroot debootstrap --arch=i386 --variant=fakechroot jammy jammy http://localhost:3142/ubuntu

: Failure trying to run: chroot "/tmp/fakeroots/jammy" dpkg-deb -f /var/cache/apt/archives/dpkg_1.21.1ubuntu2_i386.deb Version
W: See /tmp/fakeroots/jammy/debootstrap/debootstrap.log for details
I: Installing core packages...
W: Failure trying to run: chroot "/tmp/fakeroots/jammy" dpkg --force-depends --install /var/cache/apt/archives/base-passwd_3.5.52build1_i386.deb
W: See /tmp/fakeroots/jammy/debootstrap/debootstrap.log for details

tags: added: jammy
Ken Sharp (kennybobs)
tags: added: noble
Ken Sharp (kennybobs)
summary: - debootstrap --variant=fakechroot --arch=i386 impossible on Trusty amd64
+ debootstrap --variant=fakechroot --arch=i386 impossible on amd64
Revision history for this message
Ken Sharp (kennybobs) wrote (last edit ):

Fixing /bin/fakeroot fixes this issue. Needs fixing upstream. Will update.

Ken Sharp (kennybobs)
Changed in fakechroot (Ubuntu):
assignee: nobody → Ken Sharp (kennybobs)
affects: fakechroot (Ubuntu) → fakeroot (Ubuntu)
Revision history for this message
Ken Sharp (kennybobs) wrote :

Waiting to upload the fix for fakeroot, but working around that...

I needed a bunch of new dependencies.

$ sudo apt install libattr1:i386 libacl1:i386 libaudit1:i386 libdebconfclient0:i386 libsemanage2:i386 libxml2:i386 libcap2:i386 libicu70:i386 libpam0g:i386

Then I had to work around Bug #1430891.

$ fakeroot fakechroot debootstrap --variant=fakechroot --arch=i386 --exclude=systemd-timesyncd jammy jammy-fakechroot

Where I hit:

dpkg: dependency problems prevent configuration of console-setup-linux:
 console-setup-linux depends on kbd (>= 0.99-12) | console-tools (>= 1:0.2.3-16); however:
  Package kbd is not installed.
  Package console-tools is not installed.

console-tools does not exist, and kbd is not built for i386: Bug #2052399

Ken Sharp (kennybobs)
Changed in fakeroot (Ubuntu):
status: Confirmed → In Progress
Ken Sharp (kennybobs)
tags: added: metabug
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.