Package: base-files Version: 12.4+deb12u8 Severity: normal X-Debbugs-Cc: deb...@rocketjump.eu
Hi, reproducer for the problem: $ mkdir tmp $ sudo debootstrap bookworm tmp/ [...] $ sudo PATH=not-set-correctly /usr/sbin/chroot tmp/ /bin/bash -l bash: id: command not found bash: [: : integer expression expected PATH is taken from the parent shell, and that's sometimes undefined or doesn't include /usr/bin/. As such, the line 4 in /etc/profile should be changed from if [ "$(id -u)" -eq 0 ]; then to if [ "$(/usr/bin/id -u)" -eq 0 ]; then Thanks in advance! Greets, Lee -- System Information: Debian Release: 12.8 APT prefers stable-updates APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 'proposed-updates'), (990, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.10.11+bpo-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages base-files depends on: ii gawk [awk] 1:5.2.1-2 ii mawk [awk] 1.3.4.20200120-3.1 base-files recommends no packages. base-files suggests no packages. -- no debconf information