Le vendredi 11 décembre 2015, 13:37:32 Julian Andres Klode a écrit : > > Reading en.diff_Index translations from > > /var/lib/apt/lists/ftp.be.debian.org_debian_dists_unstable_main_i18n_Translation-en.diff_Index: > > done. > > Rebuilding Xapian index... 0% > > Traceback (most recent call last): > > File "/usr/sbin/update-apt-xapian-index", line 104, in <module> > > indexer.rebuild(opts.pkgfile) > > File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 717, in > > rebuild > > self.buildIndex(dbdir, generator) > > File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 692, in > > buildIndex > > for doc in documents: > > File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 563, in > > gen_documents_apt > > for idx, pkg in enumerate(cache): > > File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 231, in > > __iter__ > > yield self[pkgname] > > File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 200, in > > __getitem__ > > raise KeyError('The cache has no package named %r' % key) > > KeyError: "The cache has no package named 'WorldOfGoo'" > > > > > > I'm running since multiple weeks with a dummy package > installed and cannot produce any error.
I found just now that to reproduce this bug the package must be installed & available in a repository. Here removing this .deb from my local reprepro repository solved the problem. > Running update-apt-xapian-index works fine as well. > > So I'm sorry, but I can't help here, I don't know where your code > get's a mixed case package name from, but the expected response > to mixed case package names is a "no such package" response. That's right; you may close this bug as it only relate to people running unofficial repository with broken unofficial .deb files. Greets, Alexandre