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'.
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
Second, try to install headers from the command line:
Maybe you just need these specific headers (linux-headers-4.4.0-98-generic):
If that doesn't work, see what kernel type you are using (generic, lowlatency, etc.):
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):
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:
Reboot to ensure you are using latest kernel.
Purge out old headers and removed unused apps/kernels:
Reinstall the headers:
These commands worked for me.
Find
linux-headers-4.4.0-98
Install
linux-headers-4.4.0-98
For your reinstall you will type:
But for myself it's a new package so I'll use:
Remove
linux-headers-4.4.0-98
Because this was a test and I don't need them on my machine:
Cleanup leftover garbage
I see there is left over garbage in the last line so I'll manually clean it up:
Now
4.4.0-98
is almost removed. It is completely removed with:If you have internet connection...
Run
software-properties-gtk
. In Ubuntu Software tab, notice the Download from field. What do you have there? (I use "ubuntu.trumpetti.atm.tut.fi/ubuntu" as I live in Finland; at least that server has linux-headers-4.4.0-98 currently.) Try to change the setting in the field. In Updates tab see that you have "Important security updates" checked. Do what the dialog asks. And close it. Then do the following in terminal (but stop, if there are errors and please report them in comments.):and run
update-manager
to install further updates.If you do not have internet connnection...
If the problem is that you do not have internet connection, but you have Ubuntu CD-ROM/DVD installation media, you can use it as a software source, see here. If you do not have optical media, but USB one, trye this.
Check if the media contains some other kernel:
If it contains different version, you had better purge the 4.4.0-98 headers:
And install the kernel from the media:
And finally purge the old kernel images:
After trying many of the options above, (perhaps it helped) I tried the following command and it worked:
I hope it works of others...