Debian Buster – Fix ‘dpkg-reconfigure: command not found’ Error

debiandebian-buster

Debian10 seems to have removed the commands poweroff, reboot and dpkg-reconfigure, probably among others. What do I do instead of dpkg-reconfigure locales?

As a side note, I read the release notes and I think it's ridiculous this stuff isn't screamed at you when you read them.

# dpkg-reconfigure
bash: dpkg-reconfigure: command not found

edit: I am already aware I can get the dpkg-configure bin by installing a package: debconf. This package was not installed by default. This normally indicates deprecation.

Best Answer

This is the behaviour if you switched to root using su instead of su -, for example. In Debian 10 dpkg-reconfigure is located in /usr/sbin/, so it has to be in the PATH.

Compare these two PATH-variables:

user1@d10test:~$ su root
Password: 
root@d10test:/home/user1/# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
root@d10test:/home/user1/# exit

user1@d10test:~$ su - root
Password: 
root@d10test:/home/user1/# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/bin:/bin

There you'll see that the environment set bei su does not include sbin in the PATH, so dpkg-reconfigure won't be found.

debconf should be installed by default, though.

Related Topic