mk-sbuild breaks with "sudo: qemu-debootstrap: command not found" on Ubuntu 23.10+

Bug #2043092 reported by Jhonny Oliveira
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi!

[Reproducing the problem]
$ mk-sbuild mantic --arch=arm/armhf
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  qemu-user-static
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.0 MB of archives.
After this operation, 123 MB of additional disk space will be used.
Get:1 http://nl.archive.ubuntu.com/ubuntu mantic/universe amd64 qemu-user-static amd64 1:8.0.4+dfsg-1ubuntu3 [12.0 MB]
Fetched 12.0 MB in 0s (53.4 MB/s)
Selecting previously unselected package qemu-user-static.
(Reading database ... 102009 files and directories currently installed.)
Preparing to unpack .../qemu-user-static_1%3a8.0.4+dfsg-1ubuntu3_amd64.deb ...
Unpacking qemu-user-static (1:8.0.4+dfsg-1ubuntu3) ...
Setting up qemu-user-static (1:8.0.4+dfsg-1ubuntu3) ...
Processing triggers for man-db (2.11.2-3) ...
Processing triggers for systemd (253.5-1ubuntu6) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
sudo: qemu-debootstrap: command not found

[Describing the problem]
mk-sbuild relies on "qemu-debootstrap" from "qemu-user-static". This binary (/usr/sbin/qemu-debootstrap) used to be available in Ubuntu <=23.04 as part of "qemu-user-static" <=7.2, but is no longer present in Ubuntu >=23.10, because "qemu-user-static" 8.0.4 doesn't have it.

[Request]
Given that if we use the Debian latest version we get:
/usr/sbin/qemu-debootstrap
W: qemu-debootstrap is deprecated. Please use regular debootstrap directly

Can you please update the code to use debootstrap instead?

Thank you!
Jhonny Oliveira

description: updated
Revision history for this message
Mark Esler (eslerm) wrote :

I ran into this when I was trying to build an amd64 schroot on arm64.

I had meant to build an arm64 schroot, and once the host and schroot had the same arch my command worked.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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