Your message dated Fri, 29 Apr 2022 14:29:33 +0200 with message-id <20220429122933.afnozvmtb4squh44@crossbow> and subject line Re: Bug#1010356: apt: PATH messed up by apt eg starting with /usr/local/sbin in PATH has caused the Debian Bug report #1010356, regarding apt: PATH messed up by apt eg starting with /usr/local/sbin in PATH to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 1010356: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010356 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apt: PATH messed up by apt eg starting with /usr/local/sbin in PATH
- From: Nick Taylor <nicktaylor@dataskill.uk>
- Date: Fri, 29 Apr 2022 12:06:40 +0000
- Message-id: <[🔎] 165123400039.19490.17104140863019670663.reportbug@TSB-168>
Package: apt Version: 2.2.4 Severity: normal Dear Maintainer, * What led up to the situation? My postinstall fails to find a called script in /usr/local/sbin * What exactly did you do (or not do) that was effective (or ineffective)? Test using dpkg directly - note PATH shown in DEBUG line: root@TSB-168:/home/am43# dpkg -i itrackbox-bluetooth-3.2.1-20220429.112606.7359946.deb (Reading database ... 32911 files and directories currently installed.) Preparing to unpack itrackbox-bluetooth-3.2.1-20220429.112606.7359946.deb ... /var/lib/dpkg/info/itrackbox-bluetooth.prerm DEBUG /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Unpacking itrackbox-bluetooth (3.2.1-20220429.112606.7359946) over (3.2.1-20220429.112313.7c03e96) ... Setting up itrackbox-bluetooth (3.2.1-20220429.112606.7359946) ... /var/lib/dpkg/info/itrackbox-bluetooth.postinst DEBUG /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin and same package via apt: root@TSB-168:/home/am43# apt install --reinstall ./itrackbox-bluetooth-3.2.1-20220429.112313.7c03e96.deb Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'itrackbox-bluetooth' instead of './itrackbox-bluetooth-3.2.1-20220429.112313.7c03e96.deb' The following packages will be DOWNGRADED: itrackbox-bluetooth 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded. Need to get 0 B/8308 B of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 /home/am43/itrackbox-bluetooth-3.2.1-20220429.112313.7c03e96.deb itrackbox-bluetooth armhf 3.2.1-20220429.112313.7c03e96 [8308 B] dpkg: warning: downgrading itrackbox-bluetooth from 3.2.1-20220429.112606.7359946 to 3.2.1-20220429.112313.7c03e96 (Reading database ... 32911 files and directories currently installed.) Preparing to unpack .../itrackbox-bluetooth-3.2.1-20220429.112313.7c03e96.deb ... /var/lib/dpkg/info/itrackbox-bluetooth.prerm DEBUG /usr/sbin:/usr/bin:/sbin:/bin Unpacking itrackbox-bluetooth (3.2.1-20220429.112313.7c03e96) over (3.2.1-20220429.112606.7359946) ... Setting up itrackbox-bluetooth (3.2.1-20220429.112313.7c03e96) ... /var/lib/dpkg/info/itrackbox-bluetooth.postinst DEBUG /usr/sbin:/usr/bin:/sbin:/bin root@TSB-168:/home/am43# * What was the outcome of this action? My postinst script fails unless I call scripts using full path * What outcome did you expect instead? PATH should not be messed with -- Package-specific info: -- (no /etc/apt/preferences present) -- -- (no /etc/apt/preferences.d/* present) -- -- (/etc/apt/sources.list present, but not submitted) -- -- (/etc/apt/sources.list.d/itrack.list present, but not submitted) -- -- System Information: Debian Release: 11.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: armhf (armv7l) Kernel: Linux 5.4.106-itb3.03 (PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages apt depends on: ii adduser 3.118 ii debian-archive-keyring 2021.1.1 ii gpgv 2.2.27-2+deb11u1 ii libapt-pkg6.0 2.2.4 ii libc6 2.31-13+deb11u3 ii libgcc-s1 10.2.1-6 ii libgnutls30 3.7.1-5 ii libseccomp2 2.5.1-1+deb11u1 ii libstdc++6 10.2.1-6 ii libsystemd0 247.3-7 Versions of packages apt recommends: ii ca-certificates 20210119 Versions of packages apt suggests: pn apt-doc <none> pn aptitude | synaptic | wajig <none> ii dpkg-dev 1.20.9 ii gnupg 2.2.27-2+deb11u1 pn powermgmt-base <none> -- debconf information: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "C.UTF-8", LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory
--- End Message ---
--- Begin Message ---
- To: Nick Taylor <nicktaylor@dataskill.uk>, 1010356-done@bugs.debian.org
- Subject: Re: Bug#1010356: apt: PATH messed up by apt eg starting with /usr/local/sbin in PATH
- From: David Kalnischkies <david@kalnischkies.de>
- Date: Fri, 29 Apr 2022 14:29:33 +0200
- Message-id: <20220429122933.afnozvmtb4squh44@crossbow>
- In-reply-to: <[🔎] 165123400039.19490.17104140863019670663.reportbug@TSB-168>
- References: <[🔎] 165123400039.19490.17104140863019670663.reportbug@TSB-168>
Hi, On Fri, Apr 29, 2022 at 12:06:40PM +0000, Nick Taylor wrote: > * What led up to the situation? > My postinstall fails to find a called script in /usr/local/sbin This is actually the desired behaviour as maintainer scripts are tested to be working correctly with the scripts and binaries they encounter in a given distribution, not with all the possible things they could potentially encounter via /usr/local/ like older/newer self-built versions of the named tool, or something entirely different which just happens to share the same name as something packaged… The change came with a NEWS entry, quoted in full here: | apt (1.8.0~alpha3) unstable; urgency=medium | | The PATH for running dpkg is now configured by the option DPkg::Path, | and defaults to "/usr/sbin:/usr/bin:/sbin:/bin". Previous behavior of | not changing PATH may be restored by setting the option to an empty string. | | Support for /etc/apt/auth.conf.d/ has been added, see apt_auth.conf(5). | | -- Julian Andres Klode <jak@debian.org> Tue, 18 Dec 2018 15:02:11 +0100 MR was: https://salsa.debian.org/apt-team/apt/-/merge_requests/38 So, as this is documented & intended default behaviour, with an option to tweak and/or disable, I am closing as not a bug. Best regards David KalnischkiesAttachment: signature.asc
Description: PGP signature
--- End Message ---