![未找到命令,但它存在于适当的位置](https://linux22.com/image/223001/%E6%9C%AA%E6%89%BE%E5%88%B0%E5%91%BD%E4%BB%A4%EF%BC%8C%E4%BD%86%E5%AE%83%E5%AD%98%E5%9C%A8%E4%BA%8E%E9%80%82%E5%BD%93%E7%9A%84%E4%BD%8D%E7%BD%AE.png)
我刚刚安装了 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