什么显示了您可以安装以获取命令的软件包?

Aly*_*Aly 2 xfce command-line 14.04

我在其他 Ubuntu 机器上注意到,当您没有 Maven 并且您尝试mvn它时,它会告诉您安装mavenmaven2. 这不会发生在我的 xfce 上,我该如何启用它?

mur*_*uru 6

该包适当地称为command-not-foundbash这个包的集成是bash包本身的一部分,除非你修改了/etc/bash.bashrc,如果你安装了这个包,应该可以工作。

如果您使用的是 zsh,请添加到/etc/zshrc

. /etc/zsh_command_not_found
Run Code Online (Sandbox Code Playgroud)