update-apt-xapian-index crashed with KeyError in iter_paragraphs()

Bug #334847 reported by Damian Kolkowski
6
Affects Status Importance Assigned to Milestone
apt-xapian-index (Ubuntu)
New
Undecided
Unassigned

Bug Description

dk@kd1:~$ sudo /usr/bin/python3 /usr/sbin/update-apt-xapian-index
  File "/usr/sbin/update-apt-xapian-index", line 42
    print "%s..." % self.task,
                ^
SyntaxError: invalid syntax
dk@kd1:~$

Binary package hint: apt-xapian-index

dk@kd1:~$ sudo update-apt-xapian-index
[sudo] password for dk:
Reading pl translations from /var/lib/apt/lists/pl.archive.ubuntu.com_ubuntu_dists_jaunty_restricted_i18n_Translation-pl: done.
Reading pl translations from /var/lib/apt/lists/pl.archive.ubuntu.com_ubuntu_dists_jaunty_multiverse_i18n_Translation-pl: done.
Reading pl translations from /var/lib/apt/lists/pl.archive.ubuntu.com_ubuntu_dists_jaunty_main_i18n_Translation-pl...
Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 579, in <module>
    addon.obj.init(dict(values = values), progress)
  File "/usr/share/apt-xapian-index/plugins/translated-desc.py", line 83, in init
    self.indexers.append(Indexer(lang, file))
  File "/usr/share/apt-xapian-index/plugins/translated-desc.py", line 33, in __init__
    for pkg in deb822.Deb822.iter_paragraphs(open(file)):
  File "/var/lib/python-support/python2.5/debian_bundle/deb822.py", line 247, in iter_paragraphs
    for key in parser.Section.keys()]
KeyError: 'Common UNIX Printing System(tm) - polecenia BSD\n The Common UNIX Printing System (or CUPS(tm)) is a printing system and\n general replacement for lpr, lpd and the like. It supports the Internet\n Printing Protocol (IPP), and has its own filtering driver model for\n handling various document types.\n .\n This package provides the BSD commands for interacting with CUPS. It is\n provided separately to allow CUPS to coexist with other printing systems\n (to a small degree).\n .\n Nazwy "Common UNIX Printing System" i "CUPS" s\xc4\x85 znakami handlowymi firmy\n Easy Software Products (www.easysw.com) i odnosz\xc4\x85 si\xc4\x99 do oryginalnych\n pakiet\xc3\xb3w \xc5\xbar\xc3\xb3d\xc5\x82owych, z kt\xc3\xb3rych te pakiety zosta\xc5\x82y zbudowane.'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 85, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 17] File exists: '/var/crash/_usr_sbin_update-apt-xapian-index.0.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 579, in <module>
    addon.obj.init(dict(values = values), progress)
  File "/usr/share/apt-xapian-index/plugins/translated-desc.py", line 83, in init
    self.indexers.append(Indexer(lang, file))
  File "/usr/share/apt-xapian-index/plugins/translated-desc.py", line 33, in __init__
    for pkg in deb822.Deb822.iter_paragraphs(open(file)):
  File "/var/lib/python-support/python2.5/debian_bundle/deb822.py", line 247, in iter_paragraphs
    for key in parser.Section.keys()]
KeyError: 'Common UNIX Printing System(tm) - polecenia BSD\n The Common UNIX Printing System (or CUPS(tm)) is a printing system and\n general replacement for lpr, lpd and the like. It supports the Internet\n Printing Protocol (IPP), and has its own filtering driver model for\n handling various document types.\n .\n This package provides the BSD commands for interacting with CUPS. It is\n provided separately to allow CUPS to coexist with other printing systems\n (to a small degree).\n .\n Nazwy "Common UNIX Printing System" i "CUPS" s\xc4\x85 znakami handlowymi firmy\n Easy Software Products (www.easysw.com) i odnosz\xc4\x85 si\xc4\x99 do oryginalnych\n pakiet\xc3\xb3w \xc5\xbar\xc3\xb3d\xc5\x82owych, z kt\xc3\xb3rych te pakiety zosta\xc5\x82y zbudowane.'
dk@kd1:~$

ProblemType: Crash
Architecture: amd64
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/sbin/update-apt-xapian-index
InterpreterPath: /usr/bin/python2.5
Package: apt-xapian-index 0.16
PackageArchitecture: all
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python /usr/sbin/update-apt-xapian-index --quiet
ProcEnviron:
 PATH=(custom, no user)
 SHELL=/bin/sh
PythonArgs: ['/usr/sbin/update-apt-xapian-index', '--quiet']
SourcePackage: apt-xapian-index
Title: update-apt-xapian-index crashed with KeyError in iter_paragraphs()
Uname: Linux 2.6.28-8-generic x86_64
UserGroups:

Revision history for this message
Damian Kolkowski (damian-kolkowski) wrote :
description: updated
Revision history for this message
krzysin (krzysin) wrote :

Change in /var/lib/apt/lists/pl.archive.ubuntu.com_ubuntu_dists_jaunty_main_i18n_Translation-pl

Package: cups-bsd
Description-pl: Copy text
Common UNIX Printing System(tm) - polecenia BSD

to
Description-pl: Common UNIX Printing System(tm) - polecenia BSD

and

Package: cups-common
Description-md5: d6f4a34b6cf635ab9a13dc1cd1503ec3
Description-pl: Copy text ^M
Common UNIX Printing System(tm) - zwykłe pliki

to
Description-pl: Common UNIX Printing System(tm) - zwykłe pliki

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote : Marking as a duplicate

This is caused by a bug in the Polish package descriptions Translation file (see bug 378075) and is not a bug in adept, apt-xapian-index, cups or synaptic, therefore marking as a duplicate of the mentioned bug. Please look at the other bug report for a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.