我在VM上运行Linux Mint。我以前曾在Ubuntu 20.04 WSL上工作,我喜欢该功能,如果您没有安装程序,但是如果存储库中存在该程序,则会提示您安装它。举个例子:
zathura
Command 'zathura' not found, but can be installed with:
sudo apt install zathura
我在Linux Mint中没有得到此提示。它只是说:
bash: zathura: command not found
现在我可以做一个,apt search ...
但这是另外一个步骤。有什么办法可以使我在Mint中得到这个吗?我的猜测是制作一个单独的脚本或在我的东西中放一些东西,.bashrc
但我不知道是什么。任何帮助表示赞赏。
来自:https : //askubuntu.com/questions/821637/how-to-show-apt-get-install-suggestions-in-command-line
负责冗长且更有用的“找不到命令”消息的软件包是
command-not-found
。通过运行安装
sudo apt-get install command-not-found
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句