Comment 0 for bug 1880100

Revision history for this message
emk2203 (emk2203) wrote :

After system install on an ARM system (Orange Pi Zero), an attempt to update the system via `apt full-upgrade` results in the following error:

Traceback (most recent call last):
  File "/usr/lib/cnf-update-db", line 26, in <module>
    col.create(db)
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 93, in create
    self._fill_commands(con)
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 127, in _fill_commands
    self._parse_single_commands_file(con, fp)
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 165, in _parse_single_commands_file
    suite=tagf.section["suite"]
KeyError: 'suite'

Quick fix for me was to remove the package with `sudo apt purge command-not-found && sudo apt --purge autoremove`. Reinstall of the package leads to the same results.

command-not-found version: 20.04.2
Version table:
     20.04.2 500
        500 http://ports.ubuntu.com focal/main armhf Packages