command-not-found crashes everytime (bad marshal data)

Bug #589262 reported by neopons
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
APT
New
Undecided
Unassigned
command-not-found
Incomplete
Undecided
Unassigned
command-not-found (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: command-not-found

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:

command-not-found version: 0.2.21
Python version: 2.6.5 final 0
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
Exception information:

bad marshal data
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/CommandNotFound/util.py", line 43, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 27, in main
    cnf = CommandNotFound(options.data_dir)
  File "/usr/lib/python2.6/dist-packages/CommandNotFound/CommandNotFound.py", line 87, in __init__
    self.sources_list = self._getSourcesList()
  File "/usr/lib/python2.6/dist-packages/CommandNotFound/CommandNotFound.py", line 127, in _getSourcesList
    from aptsources.sourceslist import SourcesList
  File "/usr/lib/python2.6/dist-packages/aptsources/sourceslist.py", line 36, in <module>
    from apt.deprecation import function_deprecated_by
  File "/usr/lib/python2.6/dist-packages/apt/__init__.py", line 25, in <module>
    from apt.package import Package
ValueError: bad marshal data

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Hello.
Thanks for reporting this bug. Unfortunately we need more context to fix it.
Can you reproduce the bug or did it happen just once?
Could you describe what you did to your system to cause this behavior?

This is actually an apt issue, I did not suspect that this part would break therefore command-not-found has no support for handling this error.

Changed in command-not-found:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in command-not-found (Ubuntu):
status: New → Confirmed
Zygmunt Krynicki (zyga)
Changed in command-not-found (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
chris (christian.ego) wrote :

same problem here with a fresh installation of ubuntu

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise

$ uname -rm
3.2.0-26-generic x86_64

Revision history for this message
chris (christian.ego) wrote :

argh wrong ticket sorry... -> invalid

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.