与现有内核一起安装已编译的内核

与现有内核一起安装已编译的内核

我想编译现有 Ubuntu 内核的一个版本,并安装它旁边我现有的内核版本。我希望这非常简单!

我按照此维基页面,这似乎是您在 Ubuntu wiki 上能找到的有关此任务的几个页面中最新的。

编译工作正常,我命名了我的内核版本4.4.0-57.78+foo- 我通过修改debian/changelog文件来实现这一点,该文件最初有如下第一行:

linux (4.4.0-57.78) xenial; urgency=low

到:

linux (4.4.0-57.78+foo) xenial; urgency=low

我不知道这是否正确,因为文档对这一点没有明确说明(例如,如果我应该代替部分.78或添加内容)。

这创建了一堆.deb文件,分别是:

linux-cloud-tools-4.4.0-57_4.4.0-57.78+foo_amd64.deb          linux-image-4.4.0-57-generic_4.4.0-57.78+foo_amd64.deb
linux-cloud-tools-4.4.0-57-generic_4.4.0-57.78+foo_amd64.deb  linux-image-extra-4.4.0-57-generic_4.4.0-57.78+foo_amd64.deb
linux-cloud-tools-common_4.4.0-57.78+foo_all.deb              linux-source-4.4.0_4.4.0-57.78+foo_all.deb
linux-doc_4.4.0-57.78+foo_all.deb                             linux-tools-4.4.0-57_4.4.0-57.78+foo_amd64.deb
linux-headers-4.4.0-57_4.4.0-57.78+foo_all.deb                linux-tools-4.4.0-57-generic_4.4.0-57.78+foo_amd64.deb
linux-headers-4.4.0-57-generic_4.4.0-57.78+foo_amd64.deb      linux-tools-common_4.4.0-57.78+foo_all.deb

我使用以下方式安装了它们:

sudo dpkg -i ../linux-*foo*.deb

现在,碰巧出现了一些问题,我的内核无法启动 - 但更糟糕的是,安装似乎覆盖了我现有的.57内核。

如何在启动时安装我的自定义内核作为选项,而不破坏我现有的内核?

FWIW,我的dpkg --list 'linux-image*'输出如下所示:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                   Version                  Architecture             Description
+++-======================================-========================-========================-=================================================================================
un  linux-image                            <none>                   <none>                   (no description available)
rc  linux-image-4.4.0-15-generic           4.4.0-15.31              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-18-generic           4.4.0-18.34              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-21-generic           4.4.0-21.37              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-22-generic           4.4.0-22.40              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-24-generic           4.4.0-24.43              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-31-generic           4.4.0-31.50              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-36-generic           4.4.0-36.55              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-38-generic           4.4.0-38.57              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-42-generic           4.4.0-42.62              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-43-generic           4.4.0-43.63              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-45-generic           4.4.0-45.66              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-47-generic           4.4.0-47.68              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-51-generic           4.4.0-51.72              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-53-generic           4.4.0-53.74              amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-57-generic           4.4.0-57.78+foo     amd64                    Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-15-generic     4.4.0-15.31              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-18-generic     4.4.0-18.34              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-21-generic     4.4.0-21.37              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-22-generic     4.4.0-22.40              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-24-generic     4.4.0-24.43              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-31-generic     4.4.0-31.50              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-36-generic     4.4.0-36.55              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-38-generic     4.4.0-38.57              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-42-generic     4.4.0-42.62              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-43-generic     4.4.0-43.63              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-45-generic     4.4.0-45.66              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-47-generic     4.4.0-47.68              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-51-generic     4.4.0-51.72              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-53-generic     4.4.0-53.74              amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-57-generic     4.4.0-57.78+foo     amd64                    Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-generic                    4.4.0.57.60              amd64                    Generic Linux kernel image

特别注意,我的+foo内核显示为仅有的.57 内核,所以它显然覆盖了我现有的.57内核。

相关内容