未找到命令,但它存在于适当的位置

未找到命令,但它存在于适当的位置

我刚刚安装了 debian 12,几乎所有命令都找不到。

root@debian:/# dpkg-reconfigure keyboard-configuration
bash: dpkg-reconfigure: command not found

我在这里找到它

root@debian:/home/lm# find /usr -type f -name debconf
/usr/bin/debconf
/usr/lib/tasksel/tests/debconf
/usr/share/bash-completion/completions/debconf
/usr/share/lintian/overrides/debconf

因为它仍然没有找到我什至重新安装它

root@debian:/home/lm# apt-get install dpkg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dpkg is already the newest version (1.21.22

但还是没找到

root@debian:/home/lm# dpkg-reconfigure keyboard-configuration
bash: dpkg-reconfigure: command not found
root@debian:/home/lm# apt-get install debconf
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
debconf is already the newest version (1.5.82).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


即使在此之后它仍然没有找到,并且 PATH 看起来像这样

if [ "$(id -u)" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"

所以,我不知道,现在如何重新配置​​我的键盘?

Linux debian 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-2 (2023-07-27) x86_64 GNU/Linux

相关内容