Description of problem: I've got gcc installed, but thankfully no Fortran compiler; when I did tab complete on gcc (for a filename) I got it prompting me for installation of a g77 package Version-Release number of selected component (if applicable): bash-completion-2.1-6.20141110git52d8316.fc21.noarch gcc-4.9.2-1.fc21.x86_64 How reproducible: 100% Steps to Reproduce: 1. Have gcc installed but no fortran 2. Type gcc and hit tab Actual results: Install package 'compat-gcc-34-g77' to provide command 'f77'? [N/y] Expected results: tab completion of my .c filenames Additional info:
I suppose this is PackageKit-command-not-found in action. Sure, the gcc completion tries to invoke f77 to do some optional stuff at initial load time, but I don't know why PackageKit-command-not-found would trigger on that. The user is not invoking f77 so I'd say it shouldn't. Reassigning for comments, is this the expected behavior, and why? I suppose we could check for existence of every command that is allowed to not even exist before invoking but I'm afraid that's going to be a long painful road, more and messier code, and gcc completion or even the whole bash-completion certainly won't be the only thing affected.
(In reply to rh from comment #0) > when I did tab complete on gcc (for a filename) I got it prompting me for > installation of a g77 package The command not found program shouldn't be run when doing tab-complete. Can you describe exactly how you can reproduce this please.
Richard: On my home machine, this does exactly as described in the bug, I type: gcc and then hit tab and it says 'Install package 'compat-gcc-34-g77' to provide command 'f77'? [N/y]' it only happens once in any shell, open a new shell and it repeats. Now, it doesn't happen on my work laptop (that's also an f20 upgrade).
This happens on my desktop machine that I upgraded from F20 to F21 as well. It doesn't happen on my laptop, presumably because I uninstalled PackageKit.
Dupe of Bug 1123591.
*** Bug 1123591 has been marked as a duplicate of this bug. ***
*** Bug 1186641 has been marked as a duplicate of this bug. ***
I confirm this is also happening to me. Fedora 21 x64.
*** Bug 1176715 has been marked as a duplicate of this bug. ***
This bug seems to be open for quite some time. Unless there is a fix please disable the component that causes the issue in the default installations of Fedora.
Candidate fix submitted upstream: https://bugs.freedesktop.org/show_bug.cgi?id=91073
(In reply to Ville Skyttä from comment #11) > Candidate fix submitted upstream: > https://bugs.freedesktop.org/show_bug.cgi?id=91073 Thank you for addressing it.
This should be fixed in PackageKit 1.0.8 in F22 and newer (already in stable), and PackageKit-1.0.6-2.fc21 in F21.
PackageKit-1.0.6-2.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15440
PackageKit-1.0.6-2.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update PackageKit'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15440
PackageKit-1.0.6-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
since Bug 1123591 is reported as duplicate of this bug, i'm going to continue here. i am using stock fedora 22 in VM. having similar problem albeit a different message: Install package 'gcc-c++' to provide command 'c++'? [N/y] Version-Release number of selected component (if applicable): GNU bash, version 4.3.33(1)-release (x86_64-redhat-linux-gnu) gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC) Fedora verison: 4.0.4-301.fc22.x86_64 How reproducible: 50% Steps to Reproduce: 1. login from ssh 2. Type gcc -o filename and hit tab