I am trying to upgrade Ubuntu using sudo do-release-upgrade
, and it errors out with:
“SystemError: E:The package linux-headers-4.4.0-166 needs to be reinstalled, but I can’t find an archive for it.”
How do I proceed?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
What I would suggest is that you run these following commands:
This will remove the package and install the current one. When you do these kinds of upgrades there is always the possibility of something going wrong, so it is good to have a backup that you could use to revert to a working state of your server.
Let me know how this goes.
Regards, Boyan