Ubuntu下获取内核源码

查看当前系统使用的内核版本:

apt-cache search linux-source

输出如下:

linux-source - Linux kernel source with Ubuntu patches
linux-source-3.13.0 - Linux kernel source for version 3.13.0 with Ubuntu patches

下载源码:

sudo apt-get install linux-source-3.13.0

 下载的源码在目录/usr/src

原文地址:https://www.cnblogs.com/vdvvdd/p/5464775.html