[Bug 1254765] Re: Second stage fails on Debian sparc guest

Ken Sharp 1254765 at bugs.launchpad.net
Fri Feb 2 18:29:11 UTC 2024


This is fixed in Focal but still occurs in P, T, X and B. (Tested in a
VM)

However, I tested using schroot with Precise, Trusty, Xenial and Bionic
and it also works. In such a case /proc and therefore
/proc/sys/fs/binfmt_misc are bind-mounted from the host (in my case
Jammy) to the chroot. I suggest that the problem was in the binfmt which
is supplied by qemu-user-static.

Comparing the entries in binfmt_misc/qemu-sparc between working and non-
working the only difference appears to be the F flags, which according
to Wikipedia[1]:

“F to make the kernel open the binary at configuration time instead of
lazily at startup time, so that it is available inside other mount
namespaces and chroots as well.”

This clearly makes sense.

So fixed in Focal, older releases are EOL.

[1] https://en.wikipedia.org/wiki/Binfmt_misc

** Package changed: debootstrap (Ubuntu) => qemu (Ubuntu)

** Changed in: qemu (Ubuntu)
       Status: New => Fix Released

-- 
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/1254765

Title:
  Second stage fails on Debian sparc guest

Status in qemu package in Ubuntu:
  Fix Released

Bug description:
  Host: Ubuntu Precise amd64
  Guest: Debian Testing sparc

  The second stage of a debootstrap fails, claiming it cannot find a
  file which does exist.

  $ sudo qemu-debootstrap --arch=sparc testing sparc http://ftp.uk.debian.org/debian/
  I: Running command: debootstrap --arch sparc --foreign testing sparc http://ftp.uk.debian.org/debian/
  [...]
  I: Running command: chroot sparc /debootstrap/debootstrap --second-stage
  chroot: failed to run command `/debootstrap/debootstrap': No such file or directory

  $ ll sparc/debootstrap/
  total 108K
  drwxr-xr-x  2 root root 4.0K Nov 25 14:59 ./
  drwxr-xr-x 18 root root 4.0K May  7  2013 ../
  -rw-r--r--  1 root root    6 Nov 25 14:59 arch
  -rw-r--r--  1 root root 1012 Nov 25 14:59 base
  -rwxr-xr-x  1 root root  19K Nov 25 14:59 debootstrap*
  -rw-r--r--  1 root root  177 Nov 25 14:58 debootstrap.log
  -rw-r--r--  1 root root  11K Nov 25 14:59 debpaths
  -rw-r--r--  1 root root  792 Nov 25 14:59 devices.tar.gz
  -rw-r--r--  1 root root  35K Nov 25 14:59 functions
  -rw-r--r--  1 root root  754 Nov 25 14:59 required
  -rw-r--r--  1 root root    8 Nov 25 14:59 suite
  -rw-r--r--  1 root root 5.7K Nov 25 14:59 suite-script

  Other chroots don't have this problem, it seems to be specific to the
  sparc arch.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: debootstrap 1.0.40~ubuntu0.4
  ProcVersionSignature: Ubuntu 3.8.0-33.48~precise1-generic 3.8.13.11
  Uname: Linux 3.8.0-33-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.0.1-0ubuntu17.6
  Architecture: amd64
  Date: Mon Nov 25 15:09:42 2013
  InstallationMedia: Ubuntu 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820.1)
  MarkForUpload: True
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_GB:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: debootstrap
  UpgradeStatus: No upgrade log present (probably fresh install)

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




More information about the foundations-bugs mailing list