Home > OS >  The Linux kernel version problem
The Linux kernel version problem

Time:09-26

 
Nasri @ ubuntu: ~ $sudo apt - cache search Linux - source
Linux - source - the Linux kernel source with Ubuntu patches
Linux - source - 3.13.0 - Linux kernel source for version 3.13.0 with Ubuntu patches
Nasri @ ubuntu: ~ $cat/proc/version
Linux version 4.4.0-142 - generic (buildd @ lcy01 - amd64-006) (GCC version 4.8.4 (Ubuntu 4.8.4-2 ubuntu1 ~ 14.04.4)) # 168 ~ 14.04.1 - Ubuntu SMP Sat Jan 19 11:26:28 UTC 2019
Nasri @ ubuntu: ~ $uname -a
Linux ubuntu 4.4.0-142 - generic # 168 ~ 14.04.1 - ubuntu SMP Sat Jan 19 11:26:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Nasri @ ubuntu: ~ $


Sudo apt - cache search Linux - source see native Linux kernel source code is 3.13
But with the cat and the uname command is 4.40
Look under/user/SRC Linux - headers - 4.4.0-142, Linux - headers - 4.4.0-142 - generic

How much is the current kernel version?
Which 3.13.0 what version number,
I myself not changed in ubuntu kernel version

CodePudding user response:

Uname -r see is what you are currently running kernel version
Under the/usr/SRC/headers, kernels are not necessarily provided,

Specific use which kernel header file to compile the module, can through the/lib/modules/below correspond to the kernel version of the directory, there will be a soft link, build the soft connection usually point to the corresponding version of the kernel header files (if any)

CodePudding user response:

reference 1st floor melo_fang response:
uname -r see is what you are currently running kernel version
Under the/usr/SRC/headers, kernels are not necessarily provided,

Specific use which kernel header file to compile the module, can through the/lib/modules/below correspond to the kernel version of the directory, there will be a soft link, build the soft connection usually point to the corresponding version of the kernel header files (if any)

Thank you for the
  • Related