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

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)

-- System Information:
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux bullseye/sid
Release:        testing
Codename:       bullseye
Architecture: armv7l

Kernel: Linux 4.19.97-v7l+ (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fi_FI.UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set 
to fi_FI.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages command-not-found depends on:
ii  apt-file     3.2.2
ii  lsb-release  11.1.0+rpi1
ii  python3      3.7.5-3
ii  python3-apt  1.9.10

command-not-found recommends no packages.

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

-- no debconf information

Reply via email to