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