command-not-found fails to work on ports architectures

Bug #533031 reported by Emmet Hikory on 2010-03-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Michael Vogt
Michael Vogt

Bug Description

Binary package hint: command-not-found

When used on any architecture on, command-not-found is unable to determine candidate commands.

ProblemType: Bug
Architecture: powerpc
Date: Sat Mar 6 09:02:47 2010
DistroRelease: Ubuntu 9.10
Package: command-not-found 0.2.38ubuntu4
PackageArchitecture: all
ProcVersionSignature: Ubuntu 2.6.31-19.56-powerpc
SourcePackage: command-not-found
Uname: Linux 2.6.31-19-powerpc ppc

Emmet Hikory (persia) wrote :
tags: added: armel ia64 sparc
Emmet Hikory (persia) wrote :

Further testing indicates that command-not-found does work on ports, but only for arch:all packages. This can lead to odd results, like the following (lucid armel):

No command 'strace' found, did you mean:
Command 'dtrace' from package 'systemtap-sdt-dev' (universe)

Paul Larson (pwlars) wrote :

I can reproduce this as well. Other examples that are easy to reproduce (since strace is installed by default on my system): abiword, konsole, etc...

Changed in command-not-found (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Zygmunt Krynicki (zyga) wrote :

Hmm, this is very odd.
Unless someone broke the data harvester around lucid I cannot explain how this could happen.

Michael Vogt: is the data generated on a host that has access to port packages?

Emmet Hikory (persia) wrote :

    The issue is much simpler than that: the Contents.gz files are generated on, command-not-found just isn't looking there.

Zygmunt Krynicki (zyga) wrote :

Emmet: what are you talking about? Command not found has an database of suggestions that has to be generated offline by having access to all the .deb files you want to support. It is not using Contents.gz file (whatever that is) as far as I know.

Tobin Davis (gruemaster) wrote :

I can still reproduce this issue on natty images.

Steps to reproduce:
    ~$ sudo apt-get remove strace
    ~$ strace

Expected results should be:
    The program 'strace' is currently not installed. You can install it by typing:
     sudo apt-get install strace

Actual results:
    No command 'strace' found, did you mean:
      Command 'dtrace' from package 'systemap-sdt-dev' (universe)
    strace: command not found

I tested this on a beagleXM and on a panda running natty daily (20120216 plus latest updates). I also tested this on a daily (20120223) natty-desktop-i386.iso with updates in a VirtualBox environment.

tags: added: iso-testing
Tobin Davis (gruemaster) wrote :

After spending a weekend learning python-apt and all it's nuances, then updating the code within the command-not-found source tree for generating the used to generate the data files at build time, I now have a working database on armel. Need to redo my hacks so that they can be integrated with the main source once it has been properly updated.

Changed in command-not-found (Ubuntu):
status: Triaged → In Progress
milestone: none → ubuntu-11.04-beta-1
assignee: nobody → Tobin Davis (gruemaster)
Michael Vogt (mvo) wrote :

The problem here is just that the extractor runs on a machine without access to a mirror. If that gets fixed the extraction can include them. Alternativelyit could run on two different machines and we just concat the result on build time. But I want to run it on a ubuntu hosted server, not on some home machine.

Tobin Davis (gruemaster) on 2011-03-29
Changed in command-not-found (Ubuntu Natty):
assignee: Tobin Davis (gruemaster) → Michael Vogt (mvo)
tags: added: bitesize
Michael Vogt (mvo) wrote :

Hm? Not sure that this is really "bitesize".

tags: removed: bitesize
Michael Vogt (mvo) wrote :

Just for the record, this is blocked on getting access to a mirror of to run the data extraction on.

Michael Vogt (mvo) on 2011-04-01
Changed in command-not-found (Ubuntu Natty):
milestone: ubuntu-11.04-beta-1 → ubuntu-11.04-beta-2
Michael Vogt (mvo) wrote :

This is uploaded now. I have not tested it on powerpc, armel as I don't have the required hardware. Feedback welcome.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package command-not-found - 0.2.41ubuntu1

command-not-found (0.2.41ubuntu1) natty; urgency=low

  * updated to current natty
  * updated to include as well in the
    set (LP: #533031)
 -- Michael Vogt <email address hidden> Tue, 05 Apr 2011 14:15:19 +0200

Changed in command-not-found (Ubuntu Natty):
status: In Progress → Fix Released
Tobin Davis (gruemaster) wrote :

Tested on armel, works as expected. Powerpc data looks ok in the source tree. Thanks.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers