[SOLVED] apt-get error: "package index files are corrupted"

Started by frapelli, 2013/12/04, 22:29:54

Previous topic - Next topic

frapelli

When upgrading I get:
E: The package index files are corrupted. No Filename: field for package libmozjs24d.
E: Unable to lock the download directory
And the upgrade stops.
What should I do?


Thanks



Gabriel_M

apt-get clean
rm -f /var/lib/apt/lists/*
rm -f /var/lib/apt/lists/partial/*
apt-get clean
apt-get update

dibl

Try


dpkg --configure -a


then what Gabriel said.   ;)
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

frapelli

Thank you. None of the two suggestions worked.I still get the same message and upgrade is not possible.



dibl

I would try a apt-get purge of the package libmozjs24d.  Then


dpkg --configure -a and see if there is any error.
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

piper

I have a Lucky Rabbit:    "Svoot" ..... (It's Swedish)

I am MAGA

Gabriel_M

libmozjs24d: This library provides the embeddable JavaScript/ECMAScript engine from
the Mozilla project (used among others by the Iceweasel (Firefox) browser
as well as by the iPlanet WebServer).

apt-get remove --purge libmozjs24d


frapelli

I solved with:
apt-get install libmozjs*


or maybe:
apt-get install libmozjs24d*


I do not remember exactly...


a few packages were installed and after that dist-upgrade worked.


Thanks anyway for your help.