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.

  • 1
    That kernel was deleted from the repos because it had issues. See https://askubuntu.com/q/1299090/243321 That's why your system can't find it. Suggest you remove everything related to that kernel (unless it's the one you are using). – Organic Marble Dec 27 '20 at 02:22
  • When running uname -r It says: i'm using: 5.4.0-54-generic. Do I need to update my kernel to a new version? if so how do I do that? – Mr.Untitled Dec 27 '20 at 02:34
  • If you have bionic-updates enabled, linux-headers-generic should point to linux-headers-5.4.0-58-generic which would pull .58 kernel. You can refer this answer to know how to remove .56. – Kulfy Dec 27 '20 at 13:16

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
  • 5,600