When entering a command which is not available, command-not-found should tell the package where the command might be part of.
Instead, it crashed with error message:
Could not find the database of available applications, run update-command-not-found as root to fix this
Sorry, command-not-found has crashed! Please file a bug report at:
http://www.debian.org/Bugs/Reporting
Please include the following information with the report:
command-not-found version: 0.3
Python version: 3.6.7 final 0
Distributor ID: PureOS
Description: PureOS GNU/Linux 8
Release: 8
Codename: green
Exception information:
local variable 'cnf' referenced before assignment
Traceback (most recent call last):
File "/usr/share/command-not-found/CommandNotFound/util.py", line 23, in crash_guard
callback()
File "/usr/lib/command-not-found", line 93, in main
if not cnf.advise(args[0], options.ignore_installed) and not options.no_failure_msg:
UnboundLocalError: local variable 'cnf' referenced before assignmentRunning update-command-not-found as root doesn't help. The *.db Files in /var/cache/command-not-found are outdated (last modified in July).
The package command-not-found was updated today on my system from 0.2.38-4 to 18.04.5-1.