An ordinary command not found error says:
bash: sadfasdf: command not found...
However, if executing [] in bash, it gives two error messages instead of one:
bash: []: command not found...
Failed to search for file: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_5ftransaction_5ferror.Code14: Invalid input passed to daemon: char '[' in text!
What does the second error message mean, and how does [] cause the error to happen?
You seem to have the same problem described here on the PackageKit mailing list. If you’re using PackageKit, that’s likely your problem.
More generally, you should check whatever seems to be running through the BASH
command_not_found_handlefunction.From
man bash:Simply, it’s a function which is called whenever BASH can’t find the command you entered.
Seems likely something is defining that function, and doesn’t like square brackets!
greparound your/etc/profileand bash config files, it’ll be there somewhere 🙂