Skip to content

apport hook for ubuntu crash with NameError in Ubuntu 12.10

I can't report bugs in ubuntu using apport hook:

$ ubuntu-bug vlc
ERROR: hook /usr/share/apport/package-hooks/source_vlc.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
    symb['add_info'](report, ui)
TypeError: add_info() takes exactly 1 positional argument (2 given)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 202, in _run_hook
    symb['add_info'](report)
  File "/usr/share/apport/package-hooks/source_vlc.py", line 8, in add_info
    attach_related_packages(report, [
NameError: global name 'attach_related_packages' is not defined
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information