Running update-apt-xapian-index -vf ends with error

Bug #1591626 reported by QkiZ on 2016-06-12
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
apt-xapian-index (Ubuntu)
Medium
Unassigned

Bug Description

Running update-apt-xapian-index -vf ends with error:
Rebuilding Xapian index... 6%Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 111, in <module>
    indexer.rebuild(opts.pkgfile)
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 758, in rebuild
    self.buildIndex(dbdir, generator)
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 733, in buildIndex
    for doc in documents:
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 580, in gen_documents_apt
    yield self.get_document_from_apt(pkg)
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 543, in get_document_from_apt
    addon.obj.index(document, pkg)
  File "/usr/share/apt-xapian-index/plugins/apttags.py", line 127, in index
    rec = ver.record
  File "/usr/lib/python3/dist-packages/apt/package.py", line 592, in record
    return Record(self._records.record)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 724: invalid start byte

I'm trying run update-apt-xapian-index by hand because Synaptic quick search doesn't work anymore.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apt-xapian-index 0.47ubuntu8
ProcVersionSignature: Ubuntu 4.4.0-23.41-lowlatency 4.4.10
Uname: Linux 4.4.0-23-lowlatency x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Sun Jun 12 09:20:47 2016
InstallationDate: Installed on 2015-02-13 (484 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageArchitecture: all
SourcePackage: apt-xapian-index
UpgradeStatus: Upgraded to xenial on 2016-04-25 (47 days ago)

QkiZ (qkiz) wrote :
QkiZ (qkiz) wrote :

apt-xapian-index version 0.47ubuntu8 - no change

latimerio (fomember) wrote :

Similar issue here:
I have a system which was upgraded from 14.04 LTS to 16.04 LTS recently.
Since then I get the weekly errors from /etc/cron.weekly/apt-xapian-index as shown below.
I have already purged python and xapian and re-installed them but no change.

Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 111, in <module>
    indexer.rebuild(opts.pkgfile)
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 758, in rebuild
    self.buildIndex(dbdir, generator)
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 733, in buildIndex
    for doc in documents:
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 580, in gen_documents_apt
    yield self.get_document_from_apt(pkg)
  File "/usr/lib/python3/dist-packages/axi/indexer.py", line 543, in get_document_from_apt
    addon.obj.index(document, pkg)
  File "/usr/share/apt-xapian-index/plugins/descriptions.py", line 108, in index
    self.indexer.index_text_without_positions(version.raw_description)
  File "/usr/lib/python3/dist-packages/apt/package.py", line 499, in raw_description
    return self._records.long_desc
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 48: invalid continuation byte
run-parts: /etc/cron.weekly/apt-xapian-index exited with return code 1

QkiZ (qkiz) wrote :

Mark that bug affects you, at the top of page.

Launchpad Janitor (janitor) wrote :

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

Changed in apt-xapian-index (Ubuntu):
status: New → Confirmed
Changed in apt-xapian-index (Ubuntu):
importance: Undecided → Medium
QkiZ (qkiz) wrote :

Ubuntu 16.10 problem still exist

QkiZ (qkiz) wrote :

Problem is related to package apt-xapian-index. When I downloaded same package but from Debian repo and install it, after clearing /var/cache/apt-xapian-index and /var/lib/apt/lists/ I started update-apt-xapian-index again and everything pass ok. It looks like this problem is solved in Debian Jessie.

https://packages.debian.org/jessie/all/apt-xapian-index/download

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers