#955003 command-not-found: Does not work on raspbian due to rpi package source

#955003#5
Date:
2020-03-26 16:41:02 UTC
From:
To:
Dear Maintainer,

Sorry for using debian bug system to report the issue, this is the only
bug tracking mentioned in software --helps and it is a hard-to-google
sython package info)e.

Software simply breaks on any invocation on standard raspbian system,
due to unability to handle rpi in /etc/apt/sources.list. The software
can be fixed by simply adding rpi to the file
/usr/share/command-not-found/CommandNotFound/db/creator.py:

component_priorities = {
    'main': 120,
    'rpi': 110,
    'universe': 100,
    'contrib': 80,
    'restricted': 60,
    'non-free': 40,
    'multiverse': 20,
}

(it would also be a good thing to have a pointer to software's own issue
tracker or homepage in --help or similar as well as in the python
package info)