Comment 18 for bug 1850804

Revision history for this message
Benjamin Drung (bdrung) wrote :

Fix for it: https://github.com/canonical/apport/pull/222

You can apply the fix manually be editing /usr/share/bash-completion/completions/apport-bug and changing the function to:

_apport_symptoms ()
{
    local filename path symptoms
    for path in /usr/share/apport/symptoms/*; do
        [[ -e "$path" ]] || continue
        filename="${path##*/}"
        # hide utility files and symptoms that don't have a run() function
        [[ ! "$filename" =~ ^_.* ]] || continue
        grep -Eq "^def run\s*\(.*\):" "$path" || continue
        symptoms+=("${filename%.py}")
    done
    echo "${symptoms[*]}"
}