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

Bug #353015 reported by Tomasz Czapiewski
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt-xapian-index (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: apt-xapian-index

$ update-apt-xapian-index
Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 518, in <module>
    lockfd = os.open(XAPIANDBLOCK, os.O_RDWR | os.O_CREAT)
OSError: [Errno 13] Permission denied: '/var/lib/apt-xapian-index/update-lock'

$ sudo update-apt-xapian-index
Reading pl translations from /var/lib/apt/lists/pl.archive.ubuntu.com_ubuntu_dists_jaunty_restricted_i18n_Translation-pl.../var/lib/python-support/python2.6/debian_bundle/deb822.py:1039: DeprecationWarning: object.__init__() takes no parameters
  str.__init__(self, str_)
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_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.6/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.'

$ lsb_release -rd
Description: Ubuntu jaunty (development branch)
Release: 9.04

$ LC_ALL=C apt-cache policy apt-xapian-index
apt-xapian-index:
  Installed: 0.16
  Candidate: 0.16
  Version table:
 *** 0.16 0
        500 http://pl.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

$ uname -a
Linux xeros-laptop 2.6.28-11-generic #38-Ubuntu SMP Fri Mar 27 10:01:17 UTC 2009 x86_64 GNU/Linux

I've already commented about apt-xapian-index bug in #194731 (I'm not sure if it's duplicate or not).

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

Revision history for this message
Tomasz Czapiewski (xeros) wrote :
description: updated
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.