Should require python-gdbm

Bug #174891 reported by Sylvain Pasche
2
Affects Status Importance Assigned to Milestone
command-not-found
New
Undecided
Unassigned

Bug Description

While debootstrappig an hardy chroot, I installed command-not-found inside.

But it didn't work as exepcted:

$ foo

KABOOOM!!!

Whoops, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/ubuntu/+source/command-not-found
Please include the following information with the report:
No module named gdbm
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 10, in <module>
    from CommandNotFound import CommandNotFound
  File "/usr/lib/python2.5/site-packages/CommandNotFound/__init__.py", line 1, in <module>
    from CommandNotFound import CommandNotFound
  File "/usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py", line 4, in <module>
    import sys, os, os.path, gdbm, posix, grp
ImportError: No module named gdbm
Python version: 2.5.1 final 0
bash: foo: command not found

An "apt-get install python-gdbm" solves the issue.

Revision history for this message
Sylvain Pasche (sylvain-pasche) wrote :

Sorry, I was not looking at the right place. This is already reported:

https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/174305

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.