Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] [SOLVED] apt-get error: "package index files are corrupted"  (Read 8673 times)

Offline frapelli

  • User
  • Posts: 19
    • http://www.citta-invisibile.it
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


« Last Edit: 2013/12/05, 22:53:17 by frapelli »

Gabriel_M

  • Guest
Re: apt-get error: "package index files are corrupted"
« Reply #1 on: 2013/12/05, 00:47:58 »
Code: [Select]
apt-get clean
rm -f /var/lib/apt/lists/*
rm -f /var/lib/apt/lists/partial/*
apt-get clean
apt-get update

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
Re: apt-get error: "package index files are corrupted"
« Reply #2 on: 2013/12/05, 03:01:58 »
Try


Code: [Select]
dpkg --configure -a

then what Gabriel said.   ;)
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline frapelli

  • User
  • Posts: 19
    • http://www.citta-invisibile.it
Re: apt-get error: "package index files are corrupted"
« Reply #3 on: 2013/12/05, 20:05:28 »
Thank you. None of the two suggestions worked.I still get the same message and upgrade is not possible.



Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.358
    • Land of the Buckeye
Re: apt-get error: "package index files are corrupted"
« Reply #4 on: 2013/12/05, 20:24:40 »
I would try a apt-get purge of the package libmozjs24d.  Then


Code: [Select]
dpkg --configure -a and see if there is any error.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
Re: apt-get error: "package index files are corrupted"
« Reply #5 on: 2013/12/05, 22:23:30 »
What is the output of

Code: [Select]
inxi -Srxxx
Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

Gabriel_M

  • Guest
Re: apt-get error: "package index files are corrupted"
« Reply #6 on: 2013/12/05, 22:28:48 »
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).

Code: [Select]
apt-get remove --purge libmozjs24d

Offline frapelli

  • User
  • Posts: 19
    • http://www.citta-invisibile.it
Re: apt-get error: "package index files are corrupted"
« Reply #7 on: 2013/12/05, 22:52:52 »
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.