Comment 2 for bug 1884148

Revision history for this message
Brian Murray (brian-murray) wrote : Re: /usr/share/apport/package_hook:ValueError:__getitem__:_apt_pkg:__getitem__:/usr/share/apport/package_hook@48:get_source:_apt_pkg

Here's the traceback too:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 297, in __getitem__
    rawpkg = self._cache[key]
KeyError: '23-gimp-data'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 156, in _apt_pkg
    return self._cache()[package]
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 299, in __getitem__
    raise KeyError('The cache has no package named %r' % key)
KeyError: "The cache has no package named '23-gimp-data'"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/apport/package_hook", line 48, in <module>
    pr['SourcePackage'] = apport.packaging.get_source(options.package)
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 189, in get_source
    if self._apt_pkg(package).installed:
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 158, in _apt_pkg
    raise ValueError('package %s does not exist' % package)
ValueError: package 23-gimp-data does not exist