从以下位置获取这些内核文件内核.ubuntu.com:
linux-headers-4.9.5-040905_4.9.5-040905.201701200532_all.deb
linux-headers-4.9.5-040905-generic_4.9.5-040905.201701200532_amd64.deb
linux-image-4.9.5-040905-generic_4.9.5-040905.201701200532_amd64.deb
并运行:
$ sudo dpkg -i linux-headers-4.9.5-040905* linux-image-4.9.5-040905*
我得到:
$ uname -r
4.9.5-040905-generic
因此,这失败了:
$ perf
WARNING: perf not found for kernel 4.9.5-040905
You may need to install the following packages for this specific kernel:
linux-tools-4.9.5-040905-generic
linux-cloud-tools-4.9.5-040905-generic
安装也失败:
$ sudo apt-get install linux-tools-4.9.5-040905-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-tools-4.9.5-040905-generic
E: Couldn't find any package by glob 'linux-tools-4.9.5-040905-generic'
E: Couldn't find any package by regex 'linux-tools-4.9.5-040905-generic'
我知道这可能是因为 apt 中没有该工具集。假设 apt 中没有 4.9 linux-tools,那么获取 apt 中 4.9 linux-tools 的时间表是什么时候?如果您想要 4.9 内核,有什么更好的工作流程?