Bug 527390 - Error message on command not found is confusing
Summary: Error message on command not found is confusing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-06 08:02 UTC by Rahul Sundaram
Modified: 2013-03-13 05:45 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-25 09:50:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rahul Sundaram 2009-10-06 08:02:51 UTC
Description of problem:

$lash_panel
Command not found. The transaction failed: no-cache, failed to search sack: Cannot retrieve repository metadata (repomd.xml) for repository: foo. Please verify its path and try again

(pk-command-not-found:3900): GLib-CRITICAL **: g_strv_length: assertion `str_array != NULL' failed

---

For someone who doesn't know about the PackageKit command not found plugin, this error message is weird and confusing and even if you are aware, this message could be better.  It is for a single repo not being accessible which doesn't even matter because foo doesn't contain the package that is needed to download the package here. 

In the yum backend if among a few repositories, if one of them is not accessible, don't just stall the entire process.

Comment 1 Richard Hughes 2009-10-06 08:28:39 UTC
Dude, you need to provide me with some of the details that bugzilla templates for you. Things like how to reproduce, version numbers of affected components and that sort of thing. There's no point telling me what the solution is when the problem isn't even debugged yet. Thanks.

Comment 2 Rahul Sundaram 2009-10-06 08:34:59 UTC
rpm -q PackageKit-command-not-found
PackageKit-command-not-found-0.5.3-0.1.20090928git.fc12.i686

If you have 3 repositories, make one of them not accessible by setting up the url incorrectly. If yum cannot access any one of the enabled repos, you should be able to reproduce this.

Comment 3 Adam Pribyl 2009-11-01 17:18:32 UTC
At the moment when I type e.g. "powertop" which is an example on http://fedoraproject.org/wiki/Features/PackageKitCommandNotFound I end up with "Command not found message." without newline at the end and this is it. It could be this is only .po message problem and it is not related to this bug, but PK is not providing any advice.

Comment 4 Matthias Clasen 2009-11-01 23:21:15 UTC
I see

[mclasen@planemask gnome-panel]$ powertop
Command not found.

then I wait a short while, and get

[mclasen@planemask gnome-panel]$ powertop
Command not found. Install package 'powertop' to provide command 'powertop'? [N/y]

typing n gets me 

[mclasen@planemask gnome-panel]$ powertop
Command not found. Install package 'powertop' to provide command 'powertop'? [N/y] [mclasen@planemask gnome-panel]$ 

so yes, there's definitively a newline missing here, but the functionality is there.

Comment 5 Jens Petersen 2009-11-07 08:23:45 UTC
(I think it is worse than that since typing y still repeats
actually repeats the "Command not found" output after installing
the package...;-)   But this is a different, right?

Comment 6 Adam Pribyl 2009-11-07 22:21:12 UTC
This is interesting, because each of as observes different behaviour. I have already two F12 test machines, on one of them the message "Install package 'powertop' to provide command 'powertop'?" never appears and there is no dealy after "Command not found." message. I do not understand why this is not working, on the other one I see the same behaviour you are describing.

Comment 7 Rahul Sundaram 2009-11-07 22:31:42 UTC
Do you have the very latest updates?

$rpm -q PackageKit gnome-packagekit PackageKit-command-not-found

PackageKit-0.5.4-0.1.20091029git.fc12.i686
gnome-packagekit-2.28.2-0.1.20091030git.fc12.i686
PackageKit-command-not-found-0.5.4-0.1.20091029git.fc12.i686

Comment 8 Adam Pribyl 2009-11-09 20:32:28 UTC
With the update to latest F12, it is showing same behaviour on both computers - missing newline and even thou you answer yes and package is installed, it continues to ask if I want to install the package.

Comment 9 Bug Zapper 2009-11-16 13:17:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 10 Paul W. Frields 2010-01-23 13:54:20 UTC
I can't reproduce this using PackageKit-command-not-found-0.5.6-1.fc12.  Reporter, is this still a problem?


Note You need to log in before you can comment on or make changes to this bug.