Software⏱️ 4 min read📅 2026-06-11

How to Fix: command-not-found. Can I turn off verbose error reports?

Ubuntu server 12.04 command-not-found error verbose reports removal

Quick Answer: Run the command "sudo apt-get purge command-not-found" to remove the package and disable verbose error reports.

The 'command-not-found' error is a common issue in Ubuntu-based systems, including Ubuntu Server 12.04 on Linode servers. This error occurs when the system cannot find a specific command or executable file during execution. The error message provided indicates that 'command-not-found' has crashed and requests users to file a bug report. However, this error can be frustrating for users who need to execute commands without encountering verbose error reports.

Removing the verbose error reports from the 'command-not-found' error is possible through various methods. In this guide, we will explore two primary fix methods to resolve this issue.

⚠️ Common Causes

  • The 'command-not-found' error typically occurs due to one or more of the following reasons: (1) The command or executable file is not installed or not available in the system's PATH. This can happen if the package containing the required command or file was not installed during the initial setup, or it may have been removed accidentally. (2) The system's configuration or environment variables are not properly set up to locate the required commands or files.
  • It is worth noting that alternative reasons for this error may include issues with package managers, dependency conflicts, or corruption of system files.

✅ Best Solutions to Fix It

Disabling verbose error reports using command-line options

  1. Step 1: To disable the verbose error reports from 'command-not-found', you can use the following command: `sudo apt-get install --quiet command-not-found` This will install the 'command-not-found' package without displaying any installation output. Alternatively, you can also disable verbose error reporting by setting the `VERBOSE` environment variable to 0 before executing a command: `export VERBOSE=0; command_name`
  2. Step 2: Another way to disable verbose error reports is to configure the system's logging settings. You can do this by editing the `/etc/syslog.conf` file and adding the following line: `command-not-found.*=debug` This will set the log level for 'command-not-found' errors to debug, which should reduce the verbosity of the output.
  3. Step 3: Finally, you can also disable verbose error reports by modifying the `/etc/default/command-not-found` file. Add the following line at the end of the file: `VERBOSE=0` This will prevent 'command-not-found' from displaying verbose error messages.

Disabling verbose error reports using system configuration

  1. Step 1: To disable verbose error reports permanently, you can modify the system's configuration files. Open the `/etc/defaults/command-not-found` file in a text editor and add the following line: `VERBOSE=0` This will set the default verbosity level for 'command-not-found' errors to 0.
  2. Step 2: Alternatively, you can also configure the system's logging settings by editing the `/etc/syslog.conf` file. Add the following line: `command-not-found.*=debug` This will set the log level for 'command-not-found' errors to debug, which should reduce the verbosity of the output.

💡 Conclusion

In conclusion, removing verbose error reports from the 'command-not-found' error is possible through various methods. By disabling verbose error reporting using command-line options or system configuration, users can resolve this issue and execute commands without encountering unnecessary output. If you are still experiencing issues after trying these methods, it may be necessary to investigate further into the root cause of the problem.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions