-1

Error appears in case of installing packages:

E: The package linux-headers-4.15.0-96 needs to be reinstalled

but I can't find an archive for it

Gryu
  • 7,559
  • 9
  • 33
  • 52
  • 2
    How did you install linux-headers-4.15.0-96? linux-headers-4.15.0-96 is not in the default 16.04 repos. – karel Apr 17 '20 at 06:06

1 Answers1

0

Load into a different working generic kernel and purge the one with broken headers:

sudo apt purge *4.15.0-96*

Then you will be able to install packages and compile the new one custom kernel if required.

To boot into different kernel, you could use this.

Gryu
  • 7,559
  • 9
  • 33
  • 52