On Fri, Dec 26, 2008 at 07:40:23PM +0100, Luca Bruno wrote:

> Package: apt-xapian-index
> Version: 0.13
> Severity: minor

> I've installed apt-xapian-index for the first time:
> [snip]
> # update-apt-xapian-index 
> Reading current timestamp failed: [Errno 2] No such file or directory:
> '/var/lib/apt-xapian-index/update-timestamp'. Assuming the index has not
> been created yet.
> Rebuilding Xapian index... 78% 
> Traceback (most recent call last):
>   File "/usr/sbin/update-apt-xapian-index", line 430, in <module>
>     buildIndex(dbdir, addons, progress)
>   File "/usr/sbin/update-apt-xapian-index", line 152, in buildIndex
>     db.add_document(document)
> xapian.DatabaseCorruptError: Failed to unlink
> /var/lib/apt-xapian-index/index.2/postlist.baseA: No such file or directory
> [/snip]
> After that the index seems to be created successfully, the index works
> correctly.

What is happening is this:

 - you install apt-xapian-index, and postinst runs an update
 - you then run an update by hand, and since it's version 0.13, it's not
   very good at detecting that another update is running
 - the first update finishes before the second, notices another index
   left around, thinks that it's an old index, and removes it
 - the second update complains that a file is missing, and aborts;
   however, the first update gave you a working index, so everything is
   fine.

Solution: upgrade to version 0.15.  How come you have 0.13 still around?
OMG, it's the one for lenny.  I'll see if I manage to get the new one
in, which fixes this problem.


Ciao,

Enrico

-- 
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <enr...@debian.org>

Attachment: signature.asc
Description: Digital signature

Reply via email to