Score:1

linux-headers-5.4.0-56 generic

cn flag

Is there any solution for this "Error: E:The package linux-headers-5.4.0-56-generic needs to be reinstalled, but I can't find an archive for it." I can't do anything...just whatever I do or any updating show me this message. This is my third post regarding this.

user535733 avatar
cn flag
The usual solution is, as the error message suggests, to reinstall the package before doing anything else. Since the package is no longer available using `apt`, you must get it from someplace else. launchpad.net is the normal place to get old packages from.
Score:1
zw flag

The simplest method is to remove the problematic package by

sudo apt-get purge linux-headers-5.4.0-56-generic

or in low-level

sudo dpkg -P --force-all linux-headers-5.4.0-56-generic

Then install normal latest kernel and its headers using:

sudo apt-get update
sudo apt-get install linux-headers-generic linux-image-generic
sudo apt-get install --reinstall linux-headers-$(uname -r)
sudo apt-get install --reinstall linux-image-$(uname -r)
chili555 avatar
cn flag
Possibly helpful: https://askubuntu.com/questions/1303046/linux-headers-5-4-0-56-needs-to-be-reinstalled-but-i-cant-find-an-archive-for
Angshuman Saha avatar
cn flag
At last... @N0rbert thanks for your answer.. it worked.
N0rbert avatar
zw flag
Great, so you can accept it :)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.