gdbm fatal: lseek error

Bug #180368 reported by SK
22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Binary package hint: command-not-found

There seem to be more issues with the libdb transistion (possibly related to the fix to bug #174305).
I have command-not-found version 0.2.11ubuntu3 installed. When typing an unknown command, I get this message:

$ unkown
gdbm fatal: lseek error

I'll be happy to provide any information you might need!

Revision history for this message
Michael B. Trausch (mtrausch) wrote :

I can confirm this bug; was just about to file it myself.

Is there any information that can be collected and posted here on this bug to get a fix going?

Changed in command-not-found:
status: New → Confirmed
Revision history for this message
René Pärts (renep) wrote :

hit@hit:~$ asd
gdbm fatal: lseek error

Revision history for this message
Tommy Mikkelsen (tamikkelsen) wrote :

i can confirm this bug, any questions you might have I can answer as I will not remove 8.04 from my test computer.. =) But a fix would be helpful as I can't even start svn ..

Revision history for this message
mattismyname (mattismyname) wrote :

Also confirmed when trying to run any program that does not exist in my $PATH

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

marking as critical, as it appears that no one can use command-not-found when it is like this.

Changed in command-not-found:
importance: Undecided → Critical
milestone: none → hardy-alpha-4
Revision history for this message
Terence Simpson (tsimpson) wrote :

Running with python2.5-dbg I get this:
$ /usr/bin/python2.5-dbg /usr/lib/command-not-found -- "anything"

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:
/usr/lib/python2.5/lib-dynload/gdbm.so: undefined symbol: Py_InitModule4
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: /usr/lib/python2.5/lib-dynload/gdbm.so: undefined symbol: Py_InitModule4
Python version: 2.5.2 alpha 0
[7889 refs]

Revision history for this message
Rich (rincebrain) wrote :

Problem found.

command-not-found-data includes the amd64 parts in the i386 version of ubuntu3, though not ubuntu2. gdbm module on i386 throws an lseek error when you try to open those files on i386.

Remove the amd64 files and/or downgrade to ubuntu2, and your problems will vanish.

This is obviously just a workaround though - gdbm is being dumb.

Revision history for this message
Rich (rincebrain) wrote :

More specifically, it turns out that the 64-bit version of this system call is no longer the same name as the 32-bit version on Python 2.5...or at least, that's what I gathered from Bug 86685.

Revision history for this message
zjaak (zjaakie) wrote :

So how did you fix it Rich.. Commands??

Revision history for this message
James McDonald (james-jamesmcdonald) wrote :

dpkg -L command-not-found-data
to get a list of the files installed
...
/usr/share/command-not-found/programs.d/amd64-main.db
/usr/share/command-not-found/programs.d/amd64-restricted.db
/usr/share/command-not-found/programs.d/amd64-multiverse.db
/usr/share/command-not-found/programs.d/amd64-universe.db
...
remove the amd64-* files and you are done

Revision history for this message
Terence Simpson (tsimpson) wrote :

I believe this was fixed in 0.2.12ubuntu1

Changed in command-not-found:
status: Confirmed → 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.