Package: live-build
Version: 1:20191221
Severity: normal

Dear Maintainer,

If "lb build" runs in a shell where it cannot access the commands it
needs, it terminates with a non-useful error message. In my case, the
message said I needed to install debootstrap, when the real problem was a
much broader issue with the shell environment.
Specifically, I use live-build to build a system with somewhat different
choice of packages than the official Debian Live releases. Meanwhile, on
the system where I host live-build, I have been going back and forth
between stretch and buster (or later releases of Debian) trying to isolate
an unrelated bug. I was able to build the target live image I wanted with
the host running stretch, and I expected to be able to do the same thing
under buster or later. However, after upgrading to buster (or newer) "lb
build" would exit prematurely with messages:
   [2020-04-22 13:51:36] lb bootstrap_debootstrap
   E: debootstrap - command not found
   I: debootstrap can be obtained from
http://ftp.debian.org/debian/pool/main/d/debootstrap/
   I: On Debian based systems, debootstrap can be installed with 'apt-get
install debootstrap'.
These messages are not helpful, since debootstrap is correctly installed.
I eventually figured out this was a problem with the host's $PATH
environment variable. I was configuring the live system as normal user and
then using su to run "lb build". Unfortunately, su sets $PATH differently
between stretch and later releases of Debian. If I instead use "su -" with
buster or later, then "lb build" results in a live image just like it did
with stretch. Either "su" or "su -" works under stretch.

-- Package-specific info:

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.5.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8),
LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages live-build depends on:
ii  debootstrap  1.0.123

Versions of packages live-build recommends:
ii  apt-utils                      2.0.2
ii  bzip2                          1.0.8-2
ii  cpio                           2.13+dfsg-2
ii  file                           1:5.38-4
ii  live-boot-doc                  1:20190614
ii  live-config-doc                11.0.1
ii  live-manual-pdf [live-manual]  2:20151217.1
ii  wget                           1.20.3-1+b2
ii  xz-utils                       5.2.4-1+b1

Versions of packages live-build suggests:
ii  e2fsprogs  1.45.6-1
pn  mtd-utils  <none>
ii  parted     3.3-4

-- no debconf information

Reply via email to