Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.

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?

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?

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 I noticed these entries in /var/tmp/dnf-[USER]-w1fherbs/dnf.log:

DEBUG Completion plugin: Generating completion cache...
DEBUG Completion plugin: Can't write completion cache: attempt to write a readonly database

Also, dnf tab completion works for package names for root.

Did something get messed up during the Fedora upgrade? I have already tried sudo dnf reinstall *dnf* and sudo dnf clean all.

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 I noticed these entries in /var/tmp/dnf-[USER]-w1fherbs/dnf.log:

DEBUG Completion plugin: Generating completion cache...
DEBUG Completion plugin: Can't write completion cache: attempt to write a readonly database

Also, dnf tab completion works for package names for root.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.

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.


Observations on dnf package name tab completion

  • does not work for my user
  • works for root
  • does not work after dnf install or dnf info
  • works after dnf remove (including for my user)

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.