On ARM systems, package error stops any system upgrade

Bug #1880100 reported by emk2203
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

python --version: command not found
python3 --version: Python 3.8.2

emk2203 (emk2203)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.