dnf tab autocompletion broken for package names after update (Fedora 29)
Tab autocompletion works for dnf options, but not for package names. It appears to freeze the command line and I have to hit Ctrl-C twice to get back the command prompt.
I have bash-completion
and sqlite
packages installed.
Autocompletion used to work on Fedora 28, and this issue started after upgrading to Fedora 29.
EDIT Using sudo strace -pXXXX -tfo /tmp/strace.log
(where XXXX is the process ID of the bash terminal where tab completion is being attempted) from here generated a 9MB 80k+ line log file and attached 55 processes. Suggestions of what hints to look for in there?
EDIT2 dnf
tab completion works for package names for root, but not for my user.
Did something get messed up during the Fedora upgrade? I have already tried sudo dnf reinstall *dnf*
and sudo dnf clean all
.
EDIT3 The following lines are from journalctl
at the time of the Fedora upgrade. Are they of concern, and could they be related to this issue?
[sss_cache] [confdb_get_domains] (0x0010): No domains configured, fatal error!
Could not open available domains
usermod: sss_cache exited with status 2
usermod: Failed to flush the sssd cache.
Another answer recommended removing sssd
, but I'm not sure I want to try something so drastic.
It works on my F29 box, both for dnf options as well as packages.
Any idea what I should check? All I know is it used to work on F28 and it no longer does immediately after the update to F29.
Try reinstalling
bash-completion
maybe that fixes some dependency (you needsqlite3
in order for the tab completion to work):sudo dnf install reinstall bash-completion
You could also take a look at this Q/A, it could be a similar issue.
I already tried reinstalling
bash-completion
andsqlite
(that installs sqlite3, there is no package calledsqlite3
). Does your system have/etc/bash_completion.d/dnf-completion.bash
as mentioned here? Mine does not.