Score:0

linux-headers for 5.4.0 charge 38gb

ps flag

I'm trying to update my kernel's headers (Linux 5.4.0)

sudo apt-get install build-essential linux-headers-`uname -r`  

but apparently, it wants to install allll kinds of headers for all kinds of kernels... and charges 38gb. (see here)
Going for

sudo apt install linux-headers-$(uname -r)

exits with the error

E: Unable to locate package linux-headers-5.4.0
E: Couldn't find any package by glob 'linux-headers-5.4.0'

Any ideas what I should be doing?

Background on this: I'm trying to install wireguard module but because the headers for 5.4.0 aren't apparent, it installs under a different kernel. I can't default when booting because I'm renting a server.

Score:0
cn flag

This is discussed here.
sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now

Deniz Grollmusz avatar
ps flag
Thanks for the response but that's not what I'm looking for. This still doesn't work and I think it's because all the headers I see are something like "5.4.0-xxx" but my kernel is just 5.4.0. That's it. Nothing extra. So it tries to get all kinds of headers. But there isn't a right one apparently.
I sit in a Tesla and translated this thread with Ai:

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.