zl程序教程

您现在的位置是:首页 >  硬件

当前栏目

ubuntu下获取相应的内核源码

内核源码Ubuntu 获取 相应
2023-09-11 14:19:35 时间

一直以为是apt-get install ,apt-get search 也搜索不到相关的包,结果不是。

 

其实是 apt-get source linux-image-$(uname -r)

必须要用source参数。

在运行以上命令之前可以找一下,看看有没有:
apt-cache show linux-image-$(uname -r)  | grep source




reference:
http://askubuntu.com/questions/524218/unable-to-download-the-source-code-of-linux-that-i-am-running