Package: command-not-found
Version: 18.04.5-1
Severity: minor

Dear Maintainer,

-- System Information:
Distributor ID: PureOS
Description:    PureOS GNU/Linux 8
Release:        8
Codename:       green
Architecture: x86_64

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.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  9.20170808
ii  python3      3.7.1-3
ii  python3-apt  1.8.1pureos1

command-not-found recommends no packages.

Versions of packages command-not-found suggests:
pn  snapd  <none>

-- description:

   * What led up to the situation?  
        pureos standard installation with french language.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
       launch an no-existing command on terminal
   * What was the outcome of this action?
      command-not-found: local variable 'cnf' referenced before assignment
   * What outcome did you expect instead?
       nothing or an error message telling that command did not exist.

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

-- no debconf information

Reply via email to