3

I can't do most things with the Terminal because it gives me this error: "the package linux-headers-5.4.0-56 needs to be reinstalled, but I can't find an archive for it." I have tried to do things like: sudo apt install --reinstall linux-headers-5.4.0-56 linux-headers-5.4.0-56-generic

But it still outputs the same error. I have also tried to simply update my Ubuntu but whenever I try to open the Software Updater It simply does nothing. Doing: Sudo apt-get upgrade Gives the same error.

2 Answers2

1

Just in case someone else ends up here. The solution to E: The package ubuntu-mono needs to be reinstalled, but I can't find an archive for it [duplicate] gave me something that helped me move the obstacle away:

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

and then

sudo apt-get update
Hauns TM
  • 111
0

Boot some recent kernel that is not 5.4.0-56. Then install my linux-purge script from here and run

sudo linux-purge --choose

And choose the 5.4.0-56 kernel(s) and purge. Thereafer update to install the latest kernel. Reboot.

jarno
  • 6,175