Bug#909395: upgrade-reports: missing sbin in root path

Niels Thykier <[email protected]>
Newsgroups gmane.linux.debian.user.testing
Message-ID <c317c767-d47c-f9f7-3cf1-051e8cd13aa7__39923.4141143554$1537899027$gmane$org@thykier.net>
Control: tags -1 moreinfo

Jeff Cliff:
> Package: upgrade-reports
> Severity: important
> 
> Dear Maintainer,
> 
> Not really sure where to submit this but upgrading to buster via instructions at
> https://wiki.debian.org/DebianTesting
> resulted in a system that would boot fine, but when i went back in to aptitude afterwards I noticed
> /sbin (and its subdirectories, eg /usr/local/sbin:/usr/sbin:/sbin ) was not in root's path.  This meant 
> if I used 'su' to log in to root, to install/upgrade/whathaveyou ...ldconfig, 'shutdown' among other 
> things was not in the path.
> 
> I've now upgraded 2 systems from stable to buster and both did the same thing.
> 
> adding 
> 
> PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
> 
> to .bashrc for root (which was empty) made at least installing/upgrading via aptitude work...but there
> wasn't much indication that I had to do this anywhere.  
> 
> If this is something new that we have to do for buster, it should be in the instructions
> 
> [...]
Hi Jeff,

Are you perhaps using "su" (instead of "su -") when changing to root?
If so, then there is a Stretch -> Buster specific change specifically
for "su" about that in util-linux's NEWS file.  It will probably be
written in the release-notes for buster (once we start writing those for
buster).

I can recommend using "apt-listchanges", which will show the NEWS files
of packages on upgrades.

Thanks,
~Niels
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.