Package: dpkg Version: 1.19.7 Severity: normal
I noticed some time ago that my pretty old custom dpkg-conffile-diff script is not available (without giving full path to it, which is /usr/lcoal/sbin/dpkg-conffile-diff) in the shell spawned by dpkg to handle config file merges during installations. Today I've found some time to investigate it, and found this commit in apt: https://salsa.debian.org/apt-team/apt/commit/806e94dcd8dbdf7bf1909657fd4331cfe17b4ab0 Set PATH=/usr/sbin:/usr/bin:/sbin:/bin when running dpkg This avoids a lot of problems from local installations of scripting languages and other stuff in /usr/local for which maintainer scripts are not prepared. (To be honest I am not sure if such change should be done in apt; if it is really needed then most probably dpkg should do it on its own). It would be nice if dpkg could restore the default root path, i.e. /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin for a shell spawned for interactive config file handling. If you think this bug should be fixed by apt somehow, feel free to reassign it. Regards, robert -- Package-specific info: -- System Information: Debian Release: bullseye/sid APT prefers unstable-debug APT policy: (990, 'unstable-debug'), (990, 'stable-updates'), (990, 'unstable'), (990, 'testing'), (990, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Versions of packages dpkg depends on: ii libbz2-1.0 1.0.8-2 ii libc6 2.29-3 ii liblzma5 5.2.4-1+b1 ii libselinux1 2.9-2+b2 ii tar 1.30+dfsg-6+b1 ii zlib1g 1:1.2.11.dfsg-1+b1 dpkg recommends no packages. Versions of packages dpkg suggests: ii apt 1.8.4 pn debsig-verify <none> -- no debconf information

