[SOLVED] Kernel source tree?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
turboscrew
Level 4
Level 4
Posts: 214
Joined: Sat Sep 26, 2009 2:13 pm

[SOLVED] Kernel source tree?

Post by turboscrew » Fri Mar 18, 2016 5:00 am

Where can I find the kernel source tree for my current kernel?
(Mint 17.3 Cinnamon 64-bit)

My kernel is

Code: Select all

$ uname -r
3.19.0-32-generic
I checked in synaptic and found:
linux-source
linux-source-3.13.0

In both cases the latest version seems to be 3.13.0-83.
Maybe the right repo is missing?
Last edited by turboscrew on Fri Mar 18, 2016 12:37 pm, edited 1 time in total.

JeremyB
Level 20
Level 20
Posts: 11018
Joined: Fri Feb 21, 2014 8:17 am

Re: Kernel source tree?

Post by JeremyB » Fri Mar 18, 2016 7:45 am

Do you have source repos enabled in Software Sources?

What are going to do with the source?

With source code repos enabled, you should be able to

Code: Select all

apt-get source linux-image-$(uname -r)
When it is done look for a folder named linux-3.19 or possibly linux-lts-vivid-3.19

User avatar
turboscrew
Level 4
Level 4
Posts: 214
Joined: Sat Sep 26, 2009 2:13 pm

Re: Kernel source tree?

Post by turboscrew » Fri Mar 18, 2016 9:59 am

JeremyB wrote:Do you have source repos enabled in Software Sources?

What are going to do with the source?

With source code repos enabled, you should be able to

Code: Select all

apt-get source linux-image-$(uname -r)
When it is done look for a folder named linux-3.19 or possibly linux-lts-vivid-3.19
Yes. I guess that's where the two mentioned packages were found.

I was planning to play with a driver.

Post Reply

Return to “Newbie Questions”