recommends packages in universe in preference to packages in main

Bug #95598 reported by Colin Watson
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found
Fix Released
High
Zygmunt Krynicki
command-not-found (Ubuntu)
Fix Released
High
Zygmunt Krynicki

Bug Description

Binary package hint: command-not-found

From a local IRC channel:

<fivemack> I ran 'g++', which said 'you should install pentium-builder'; apt-get install pentium-builder has left me with what looks like a cross-build environment, where /usr/bin/g++ links to builder-c++ which is a script which calls g++-real which doesn't exist.

This is obviously a bug; it should have recommended g++ in preference, since g++ is in main while pentium-builder is in universe.

Furthermore, I would argue that if a command is available in multiple packages then it should tell you this, rather than arbitrarily selecting one.

Revision history for this message
Colin Watson (cjwatson) wrote :

(The reporter is running Feisty.)

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

This is a known issue due to the complexity of correctly detecting alternatives. A manual work-around as in gcc can be applied as a temporary workaround. A full and correct handling of alternatives is very difficult and I'm open to suggestions.

Changed in command-not-found:
status: Unconfirmed → Confirmed
Michael Vogt (mvo)
Changed in command-not-found:
importance: Undecided → High
Revision history for this message
Matthias Klose (doko) wrote :

IMO this has nothing to do with alternatives; /usr/bin/g++ is part of the g++ package, it's not handled by alternatives. why not look first for packages just in main, then for packages in other sources?

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

This is caused by dangling symlinks (it's a feature of the data extractor)

In one package:
/usr/bin/g++ -> /usr/bin/g++-4.1

In other package:
/usr/bin/g++-4.1

Currently the data extractor is dropping cross-package symlinks.

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

Fixed in trunk, should be part of feisty in a few days

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

Moved from ubuntu where the bug has been filed.

Changed in command-not-found:
assignee: nobody → zkrynicki
importance: Undecided → High
status: Unconfirmed → Confirmed
status: Confirmed → Fix Committed
Michael Vogt (mvo)
Changed in command-not-found:
status: Fix Committed → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

The data is updated and the new package is uploaded now. Awaiting approval from the release-manager.

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

Other bug subscribers

Remote bug watches

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