Linux-Headers Reinstall
I'm trying upgrade firefox but says that i need to reinstall linux-headers 4.4.0-98.I tried to install but that's it's what happens 'the package linux-headers needs to be reinstalled, but i can't find an archive for it'.
First try the fix-missing feature
sudo apt upgrade --fix-missing
Second, try to install headers from the command line:
Maybe you just need these specific headers (linux-headers-4.4.0-98-generic):
sudo apt install linux-headers-4.4.0-98-generic
If that doesn't work, see what kernel type you are using (generic, lowlatency, etc.):
uname -r
This will return something like "4.15.0-30-generic" or "4.15.0-30-lowlatency". Install/Reinstall the headers that correspond to your kernel type. Eg if it is the generic kernel (most likely):
sudo apt install --reinstall linux-headers-generic
This will cause the current headers for your current kernel to be automatically installed and upgraded.
If above doesn't work, try the following:
Update to latest kernel:
sudo apt update && sudo apt upgrade
Reboot to ensure you are using latest kernel.
Purge out old headers and removed unused apps/kernels:
sudo apt remove --purge linux-headers-*
sudo apt autoremove && sudo apt autoclean
Reinstall the headers:
sudo apt install linux-headers-generic