How do I install linux-headers?

Post questions regarding lower-level issues will here.

How do I install linux-headers?

Postby BowCatShot » February 18th, 2018, 2:01 am

What are the prerequisites for installing linux-headers?

I tried apt-get install linux-headers-$(uname -r) on both Jessie and Stretch and both failed. This was after doing apt-get update && apt-get upgrade.

The scenario was I was trying to install each of the os's into virtualbox. There, in order to be able to have a shared folder with the host, there is a procedure that must be run and it requires the latest linux-headers.
BowCatShot
 
Posts: 68
Joined: May 10th, 2014, 2:29 pm

Re: How do I install linux-headers?

Postby fsmithred » February 18th, 2018, 12:39 pm

This is correct. You should get the headers for the running kernel.
Code: Select all
apt-get install linux-headers-$(uname -r)


Try it like this:
Code: Select all
apt-get install linux-headers-$(uname -r) | tee headers-error.txt
There should be an error message in there someplace that says what is wrong.
fsmithred
 
Posts: 327
Joined: February 11th, 2011, 4:14 am

Re: How do I install linux-headers?

Postby BowCatShot » February 18th, 2018, 7:26 pm

Thanks, fsmithred. The error message points me to a log file, and in that log file there's another error message that points me to another log file. I'll try pursuing your suggestion, though.

Incidentally, my host system is Wheezy. When my guest system is either Jessie or Stretch, this fails. The only time I've had success is when both host and guest are Wheezy. That shouldn't be so but I wonder if that is the cause.
BowCatShot
 
Posts: 68
Joined: May 10th, 2014, 2:29 pm

Re: How do I install linux-headers?

Postby fsmithred » February 18th, 2018, 11:26 pm

That's weird. I've run jessie (when she was still Unstable and Testing) as vbox guests on a wheezy host, and I know I installed headers. But that was about three years ago.

Side note: we're gonna have to upgrade our wheezy installs soon.
https://wiki.debian.org/LTS
fsmithred
 
Posts: 327
Joined: February 11th, 2011, 4:14 am

Re: How do I install linux-headers?

Postby BowCatShot » February 19th, 2018, 11:47 am

What we've got here, I must confess, is stupid operator error. The example that I was following used sudo to issue all of the commands. When I changed to a su into root and issued the commands from there, I got no errors.

But now I've got a case of "the operation was successful but the patient died". After installing guest additions, setting up a shared folder still doesn't work and full screen in the guest os still doesn't work.

Please, please, please...don't take my Wheezy away.
BowCatShot
 
Posts: 68
Joined: May 10th, 2014, 2:29 pm

Re: How do I install linux-headers?

Postby Pick2 » February 19th, 2018, 4:09 pm

BowCatShot wrote:... Please, please, please...don't take my Wheezy away.

My sentiments Exactly :)
Just folded space from Arrakis
Fugitive of the fdn re-education camp.
User avatar
Pick2
 
Posts: 168
Joined: February 10th, 2011, 1:22 am
Location: Decatur , Illinois , USA


Return to System Issues

Who is online

Users browsing this forum: No registered users and 1 guest

x