找不到相关命令。我可以关闭详细的错误报告吗?

Ikb*_*ear 4 command-line ubuntu ubuntu-12.04

我在 linode 服务器上安装了 ubuntu 服务器 12.04。每次我执行一些未找到的命令时,它都会引发这样的错误:

Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.2.44
Run Code Online (Sandbox Code Playgroud)

我试图寻找答案,但没有找到解决方案。有什么方法可以删除这个冗长的错误报告吗?

wim*_*imh 5

请参阅如何在 UBUNTU 中禁用 COMMAND-NOT-FOUND

将以下行添加到您的 ~/.bashrc 中:

unset command_not_found_handle
Run Code Online (Sandbox Code Playgroud)

或通过以下方式将其删除:

sudo apt-get remove command-not-found command-not-found-data
Run Code Online (Sandbox Code Playgroud)