如何Ubuntu Linux安装内核源代码和头文件

时间:2020-01-09 10:41:02  来源:igfitidea点击:

如何使用Ubuntu补丁安装Linux内核源代码?
如何使用命令行选项为版本2.6.3x安装Ubuntu Linux内核源代码树?
您需要使用" apt-get"命令来安装Linux内核源代码。
打开终端并输入以下命令以安装Ubuntu Linux源代码:

$ sudo apt-get update
$ sudo apt-get install linux-source

输出示例:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  linux-source-2.6.32
Suggested packages:
  libncurses-dev ncurses-dev kernel-package libqt3-dev
The following NEW packages will be installed:
  linux-source linux-source-2.6.32
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 65.9MB of archives.
After this operation, 66.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y