问题原文
原帖链接 · gl00ten · CC BY-SA 4.0
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.
社区高分解答
原帖链接 · Lenniey · CC BY-SA 4.0
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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
