Package: debootstrap
Version: 1.0.142
Severity: important
X-Debbugs-Cc: [email protected]
Dear Maintainer,
I am trying to create a Ubuntu 25.10 debootstrap environment for my next
release
of Rescuezilla. I would like to keep using GNU coreutils rather than the new
Rust coreutils called "uutils", selecting the old package is something that
Ubuntu 25.10 continues to support.
>From the tip of the master branch, I run:
sudo debootstrap/debootstrap \
--exclude=coreutils-from-uutils,rust-coreutils \
--include=coreutils-from-gnu,gnu-coreutils \
--no-resolve-deps \
--foreign \
questing \
target_folder \
http://archive.ubuntu.com/ubuntu/
This correctly downloads and validates the desired 'coreutils-from-gnu'
package,
and it correctly excludes the uutils one.
But it does NOT extract the coreutils-
from-gnu package, the absence is clearly visible from the logs.
Thus when I run the second stage in a chroot I get "'cat': not found" error
as
follows:
sudo chroot target_folder/ /bin/bash -c "DEBOOTSTRAP_DIR=\"debootstrap\"
./debootstrap/debootstrap --second-stage"
./debootstrap/debootstrap: 495: cat: not found
Of course, this missing 'cat' is the binary from the GNU coreutils DEB that
wasn't extracted into the chroot as intended.
It appears the reason this is a bug in debootstrap where packages under
$ADDITIONAL are not modified by the --include and --exclude options.
Right now I'm not familiar enough with debootstrap's internals to make this
change myself in a way that has zero impact on other people's usage of the
tool.
Could you please fix this? This may have a related root cause to #1088087.