Hallo,

Ik deed een upgrade van Debian 10 naar 11, en nu lukt het me niet om een oud package te verwijderen wat niet meer in de nieuwe versie zit.
Wat zal dit zijn?  (zie onder)  De foutmelding lijkt te zijn:
corrupted double-linked list

Als ik in /var/lib/dpkg/info/libpython3.7-stdlib:amd64.prerm kijk, dan lijkt het dat hij gewoon de bytecode wil verwijderen.

Ik zie in die directory ook nog andere pakketten die er niet horen volgens mij, zoals python3.7-minimal en python3.5-minimal.
Debian 11 gebruikt Python 3.9.

Groet,
Paul

------
root@hosting:/home/nextcloud/www# LANG=C apt remove libpython3.7-stdlib
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  libpython3.7-stdlib
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 8338 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 68919 files and directories currently installed.)
Removing libpython3.7-stdlib:amd64 (3.7.3-2+deb10u3) ...
corrupted double-linked list
Aborted
dpkg: error processing package libpython3.7-stdlib:amd64 (--remove):
installed libpython3.7-stdlib:amd64 package pre-removal script subprocess returned error exit status 134
dpkg: too many errors, stopping
Errors were encountered while processing:
 libpython3.7-stdlib:amd64
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@hosting:/home/nextcloud/www#
--------


--
Paul van der Vlis Linux systeembeheer Groningen
https://vandervlis.nl/

Antwoord per e-mail aan