command-not-found has crashed!

Bug #164105 reported by d4n
14
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: command-not-found

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 CommandNotFound
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 10, in <module>
    from CommandNotFound import CommandNotFound
ImportError: No module named CommandNotFound
Python version: 2.5.1 final 0

Pasted a bad command into the terminal.

Revision history for this message
kaba (kai-sf) wrote :

experienced the same bug, text output exactly as above.
Additional information for my system:

user@system:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

user@system:~$ dpkg -l command-not-found | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================-==============-=============================================================
ii command-not-found 0.2.8ubuntu2 Suggest installation of packages in interactive bash sessions

Revision history for this message
Martin Magnusson (martin-blecket) wrote :

Same here:

---------------------------
$ sshhe,
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 CommandNotFound
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 10, in <module>
    from CommandNotFound import CommandNotFound
ImportError: No module named CommandNotFound
Python version: 2.5.1 final 0

bash: sshhe: kommandot hittades inte
---------------------------
$ dpkg -l command-not-found | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Namn Version Beskrivning
+++-=================-==============-=============================================================
ii command-not-found 0.2.8ubuntu2 Suggest installation of packages in interactive bash sessions

Revision history for this message
juan@launchpad (juan-confamiliares) wrote :

same here...

$ -Th
$
$
dKABOOOM!!!

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 CommandNotFound
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 10, in <module>
    from CommandNotFound import CommandNotFound
ImportError: No module named CommandNotFound
Python version: 2.5.1 final 0
f -Th
$

Revision history for this message
linovski (avelinorego) wrote :

Same here:

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 CommandNotFound
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 10, in <module>
    from CommandNotFound import CommandNotFound
ImportError: No module named CommandNotFound
Python version: 2.5.2 alpha 0
bash: CD: command not found

Revision history for this message
d_weil_e (nathan-brand-z) wrote :

:~$ whichs

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:
E:Opening configuration file /etc/apt/apt.conf - ifstream::ifstream (13 Permission denied)
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 24, in <module>
    CommandNotFound(options.data_dir).advise(args[0])
  File "/usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py", line 72, in __init__
    self.sources_list = self._getSourcesList()
  File "/usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py", line 93, in _getSourcesList
    apt_pkg.init()
SystemError: E:Opening configuration file /etc/apt/apt.conf - ifstream::ifstream (13 Permission denied)
Python version: 2.5.1 final 0
-bash: whichs: command not found

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

Thanks for your bugreport.

The errors look like there was something wrong while the package was registered via python-central. I reassign (with the exception of comment 5, that is a duplicate of #161804).

Revision history for this message
Matthias Klose (doko) wrote :

closing this one. please check if that is reproducible for you in hardy

Changed in python-central:
status: New → Fix Released
Revision history for this message
David (daveroundy-gmail) wrote :

I get this error with hardy.

foldable-desktop:jacksode$ squ
Sorry, 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 CommandNotFound
Sorry, 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 CommandNotFound
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 10, in <module>
    from CommandNotFound import CommandNotFound
ImportError: No module named CommandNotFound
Python version: 2.5.2 final 0
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 10, in <module>
    from CommandNotFound import CommandNotFound
ImportError: No module named CommandNotFound
Python version: 2.5.2 final 0
bash: squ: command not found

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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