Package: command-not-found
Version: 18.04.5-1
Severity: important
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
I typed 'll' at the command line (because I forgot I hadn't set up my bash
aliases)
* What exactly did you do (or not do) that was effective (or
ineffective)?
See above
* What was the outcome of this action?
The following output appeared, suggesting I file this bug:
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.7.3 final 0
Distributor ID: PureOS
Description: PureOS
Release: 9.0
Codename: amber
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 assignment
* What outcome did you expect instead?
That command-not-found wouldn't barf (I guess -- I had forgotten that it runs
and makes useful suggestions most of the time).
-- System Information:
Distributor ID: PureOS
Description: PureOS
Release: 9.0
Codename: amber
Architecture: x86_64
Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages command-not-found depends on:
ii apt-file 3.2.2
ii lsb-release 10.2019031300pureos1
ii python3 3.7.3-1
ii python3-apt 1.8.4pureos3
command-not-found recommends no packages.
Versions of packages command-not-found suggests:
pn snapd <none>
-- no debconf information