linux-source-3.5.0 适合 ubuntu 12.04.2 吗?

linux-source-3.5.0 适合 ubuntu 12.04.2 吗?

我有带内核 3.5.0 的 Ubuntu 12.04.2,需要重新编译一些模块,但我很难找到正确的源代码。apt-get 只提供 3.2.0 的源代码?我在哪里可以找到已安装内核 3.5.0 的正确源代码?

答案1

在我看来,这似乎是一次重大破坏。有些元包根本不起作用,有些链接到旧的 3.2.0 内核。例如,执行apt-get source linux-image-$(uname -r)会失败,因为它尝试使用linux-lts-quantal,然后又失败,因为找不到该包。我们尝试了两个小时,最后才使用他们的内核 git 存储库(这涉及更改我们对 的脚本依赖apt-get source,我们试图避免这种情况)。

我无法理解你怎么能用如此混乱的方式“更新”一个你称之为 LTS 的版本。

目前我们的解决方案是使用他们的内核 git 存储库,尽管它非常庞大并且需要很长时间才能克隆。

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-precise.git
cd ubuntu-precise
git tag -l Ubuntu-*     # show all tagged versions
git checkout -b temp Ubuntu-lts-3.5.0-28.48     # pick the one matching "uname -r"

相关内容