Hello, thanks for the feedback. I'm glad you solved your problem, please mark your topic as [Solved] by editing the title of your first post, i.e.
[Software] [Solved] Aptitude stopped working
However, this was just a workaround. If you are still interested in the problem, we can try to dig a little deeper.
Here is the problem you encountered (from your other thread):
Code: Select all
frank@chunky:~$ sudo update-apt-xapian-index
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworReading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_non-free-firmware_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworReading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/www.deb-multimedia.org_dists_bookwoReading en translations from /var/lib/apt/lists/www.deb-multimedia.org_dists_bookworm_main_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworReading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/security.debian.org_debian-securityReading en translations from /var/lib/apt/lists/security.debian.org_debian-security_dists_bookworm-security_non-free-firmware_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworReading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en: done.
Reading en.diff_Index translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en.diff_Index...terminate called after throwing an instance of 'Xapian::InvalidArgumentError'
terminate called recursively
Aborted
The problem seems to occur when processing the _i18n_Translation-en.diff_Index file (just a guess).
Today I was able to connect to a machine that has a _i18n_Translation-en.diff_Index file. I installed apt-xapian-index and encountered no errors:
Code: Select all
#> update-apt-xapian-index
Reading fr translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_i18n_Translation-fr: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_contrib_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_non-free_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/security.debian.org_debian-security_dists_bookworm-security_non-free-firmware_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_non-free-firmware_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_non-free_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/security.debian.org_debian-security_dists_bookworm-security_main_i18n_Translation-en: done.
Reading en.diff_Index translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en.diff_Index: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_contrib_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/security.debian.org_debian-security_dists_bookworm-security_contrib_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_i18n_Translation-en: done.
Reading en translations from /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_non-free-firmware_i18n_Translation-en: done.
Rebuilding Xapian index: done.
#>
I then purged apt-xapian-index, but the database located in
/var/lib/apt-xapian-index/ is still there.
update-apt-xapian-index has a -f option to force database rebuild.
As a test, you can try reinstalling apt-xapian-index and see if the problem still occurs when run with the -f option.
If the problem is still there, try
Code: Select all
#> mv /var/lib/apt-xapian-index/ /var/lib/apt-xapian-index-SAVE/
#> update-apt-xapian-index
If the problem persists, can you please run
Code: Select all
$> gzip -c /var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en.diff_Index >/tmp/i18n_Translation-en.diff_Index.gz
and add
/tmp/i18n_Translation-en.diff_Index.gz as an attachment to your post.
note: Xapian::InvalidArgumentError is documented in
Xapian Python3 Bindings 1.4.26 documentation - xapian Package. It is triggered in various cases.