root@diaspora:~# update-apt-xapian-index -vf
(...)
Rebuilding Xapian index... 0%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
I found a workaround:
root@diaspora:~# LC_ALL=en_US.utf8 update-apt-xapian-index -vf
(...)
Writing value information to /var/lib/apt-xapian-index/values.
Writing prefix information to /var/lib/apt-xapian-index/prefixes.
Writing documentation to /var/lib/apt-xapian-index/README.
root@diaspora:~#
==> no more UTF errors!
(I also have to modify /etc/cron.weekly/apt-xapian-index !)
update-apt-xapian-index cannot handle non-UFT locale! I have:
This bug is still there in ubuntu 16.04.1!
root@diaspora:~# lsb_release -d
Description: Ubuntu 16.04.1 LTS
root@diaspora:~# update- apt-xapian- index -vf update- apt-xapian- index", line 111, in <module> rebuild( opts.pkgfile) python3/ dist-packages/ axi/indexer. py", line 758, in rebuild buildIndex( dbdir, generator) python3/ dist-packages/ axi/indexer. py", line 733, in buildIndex python3/ dist-packages/ axi/indexer. py", line 580, in gen_documents_apt document_ from_apt( pkg) python3/ dist-packages/ axi/indexer. py", line 543, in get_document_ from_apt obj.index( document, pkg) apt-xapian- index/plugins/ descriptions. py", line 108, in index indexer. index_text_ without_ positions( version. raw_description ) python3/ dist-packages/ apt/package. py", line 499, in raw_description long_desc
(...)
Rebuilding Xapian index... 0%Traceback (most recent call last):
File "/usr/sbin/
indexer.
File "/usr/lib/
self.
File "/usr/lib/
for doc in documents:
File "/usr/lib/
yield self.get_
File "/usr/lib/
addon.
File "/usr/share/
self.
File "/usr/lib/
return self._records.
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 48: invalid continuation byte
I found a workaround:
root@diaspora:~# LC_ALL=en_US.utf8 update- apt-xapian- index -vf apt-xapian- index/values. apt-xapian- index/prefixes. apt-xapian- index/README.
(...)
Writing value information to /var/lib/
Writing prefix information to /var/lib/
Writing documentation to /var/lib/
root@diaspora:~#
==> no more UTF errors!
(I also have to modify /etc/cron. weekly/ apt-xapian- index !)
update- apt-xapian- index cannot handle non-UFT locale! I have:
root@diaspora:~# locale US.ISO- 8859-15 "en_US. ISO-8859- 15" "en_US. ISO-8859- 15" "en_US. ISO-8859- 15" "en_US. ISO-8859- 15" "en_US. ISO-8859- 15" "en_US. ISO-8859- 15" "en_US. ISO-8859- 15" "en_US. ISO-8859- 15" "en_US. ISO-8859- 15" "en_US. ISO-8859- 15" ON="en_ US.ISO- 8859-15"
LANG=en_
LANGUAGE=en_US:en
LC_CTYPE=
LC_NUMERIC=
LC_TIME=en_DK.UTF-8
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
Switching my system completly to en_US.utf8 is NOT an option for me, for
several reasons.