command-not-found
当在 Kali Linux 中找不到该命令时会问这样的问题:
Command 'co' not found, but can be installed with:
sudo apt install rcs
Do you want to install it? (N/y)
然而,在 Debian 中,它只建议使用以下命令安装软件包
Command 'co' not found, but can be installed with:
sudo apt install rcs
如何让 Debian 要求安装软件包command-not-found
?
答案1
添加COMMAND_NOT_FOUND_INSTALL_PROMPT=1
到/etc/environment
并重新启动reboot
。这将提示安装该命令的软件包。它适用于所有支持command-not-found
.