dnf tab autocompletion broken for package names after update (Fedora 29)

asked 2019-02-04 00:29:24 -0600

fasulia gravatar image

updated 2019-02-16 23:31:30 -0600

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.

edit retag flag offensive close merge delete

Comments

It works on my F29 box, both for dnf options as well as packages.

florian gravatar imageflorian ( 2019-02-04 02:58:28 -0600 )edit

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.

fasulia gravatar imagefasulia ( 2019-02-04 03:03:24 -0600 )edit

Try reinstalling bash-completion maybe that fixes some dependency (you need sqlite3 in order for the tab completion to work): sudo dnf install reinstall bash-completion

florian gravatar imageflorian ( 2019-02-04 03:15:01 -0600 )edit

You could also take a look at this Q/A, it could be a similar issue.

florian gravatar imageflorian ( 2019-02-04 03:22:29 -0600 )edit

I already tried reinstalling bash-completion and sqlite (that installs sqlite3, there is no package called sqlite3). Does your system have /etc/bash_completion.d/dnf-completion.bash as mentioned here? Mine does not.

fasulia gravatar imagefasulia ( 2019-02-04 03:36:31 -0600 )edit