I encountered the following error while upgrading a 'testing/trixie' install.
Setting up network-manager (1.52.0-5) ... Insecure $ENV{CDPATH} while running with -T switch at /usr/share/perl5/Debian/AdduserLogging.pm line 157. dpkg: error processing package network-manager (--configure): installed network-manager package post-installation script subprocess returned error exit status 25 I unset CDPATH, then reinstalled and it completed without an error. I would think the apt toolchain should not allow the root interactive environment to be exposed while installing packages. -- john