Reports incorrect information when command not in path

Bug #110622 reported by Thomas Zander
14
Affects Status Importance Assigned to Milestone
command-not-found
Fix Released
High
Zygmunt Krynicki
command-not-found (Ubuntu)
Fix Released
High
Michael Vogt

Bug Description

When I type 'modprobe foo' as a normal user I get a suggestion which package I need to install in order to make that command work.
This, naturally, is a wrong diagnosis since the package is always installed but bash just could not find it in the PATH.

Giving wrong information is a really bad idea as the user will end up searching for the wrong solution and IF he ever figures out the real problem (should have used sudo) he will trust his system less.

I consider this a critical bug.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thanks for your bug report. I have never tested this as a non-admin user (without */sbin). This can be fixed for the next release but is probably not fixable for the release found in Ubuntu 7.04 as command-not-found simply has no idea about the full path of an executable.

Changed in command-not-found:
assignee: nobody → zkrynicki
importance: Undecided → High
status: Unconfirmed → Confirmed
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Fixed in the 0.3 release

Changed in command-not-found:
importance: Undecided → High
status: Unconfirmed → Confirmed
status: Confirmed → Fix Released
Revision history for this message
Niklas Klein (kleinernik) wrote :

I have patched the current 2.8.0 version with a backport form the 0.3 release to fix this problem.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Michael: I think you're the best person to look at this.

Changed in command-not-found:
assignee: nobody → mvo
Revision history for this message
Michael Vogt (mvo) wrote :

Commited and uploaded for gutsy.

Changed in command-not-found:
status: Confirmed → Fix Committed
Michael Vogt (mvo)
Changed in command-not-found:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.