command-not-found fails to work on ports architectures

Bug #533031 reported by Emmet Hikory
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Fix Released
Low
Michael Vogt
Natty
Fix Released
Low
Michael Vogt

Bug Description

Binary package hint: command-not-found

When used on any architecture on ports.ubuntu.com, 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
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-19.56-powerpc
SourcePackage: command-not-found
Uname: Linux 2.6.31-19-powerpc ppc

Revision history for this message
Emmet Hikory (persia) wrote :
tags: added: armel ia64 sparc
Revision history for this message
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)

Revision history for this message
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
Revision history for this message
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?

Revision history for this message
Emmet Hikory (persia) wrote :

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

Revision history for this message
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.

Revision history for this message
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
Revision history for this message
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 scan.data 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)
Revision history for this message
Michael Vogt (mvo) wrote :

The problem here is just that the extractor runs on a machine without access to a ports.ubuntu.com 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)
Changed in command-not-found (Ubuntu Natty):
assignee: Tobin Davis (gruemaster) → Michael Vogt (mvo)
tags: added: bitesize
Revision history for this message
Michael Vogt (mvo) wrote :

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

tags: removed: bitesize
Revision history for this message
Michael Vogt (mvo) wrote :

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

Michael Vogt (mvo)
Changed in command-not-found (Ubuntu Natty):
milestone: ubuntu-11.04-beta-1 → ubuntu-11.04-beta-2
Revision history for this message
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.

Revision history for this message
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 ports.ubuntu.com as well in the scan.data
    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
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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