-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
  • 8,002
  • 9
  • 37
  • 53

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
  • 8,002
  • 9
  • 37
  • 53