By Kerri
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
What I would suggest is that you run these following commands:
sudo apt autoremove
sudo apt purge linux-headers-4.4.0-166
sudo apt install --reinstall linux-headers-generic
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.