I am using Ubuntu 12.04.Recently, I accidentatlly removed python, causing a huge number of packages to be uninstalled. I reinstalled them, but now I am having problems.$ echo $PATH/home/paul/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/home/paul/.rvm/binNote that there is no /sbin or /usr/local/sbin!I have no idea how that happened!Thus,$ sudo apt-get autoremove -y...dpkg: warning: 'ldconfig' not found in PATH or not executable...$ sudo shutdown nowsudo: shutdown: command not found.I've gone looking. /etc/environment (which I have not touched) has$ cat /etc/environmentPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesI've rebooted (a couple times). Why doesn't my path have /sbin?UPDATEI tried creating a new user$ sudo adduser paul-test$ su -- paul-test$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesAlso,$ sudo su$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesSo something is killing /sbin for me.I've checked .bashrc.PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scriptingAnd .profilePATH=$HOME/bin:$PATHThere is no ~/.bash_profile or ~/.bash_login.FYIThis the same problem described here and here and many other places.They treat the symptom of apt-get not working, rather than correcting the real problem of no /sbin.
/etc/environment not working
ubuntu;path