Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux Debian:如何安装修补过的内核?_Linux_Debian - Fatal编程技术网

Linux Debian:如何安装修补过的内核?

Linux Debian:如何安装修补过的内核?,linux,debian,Linux,Debian,我需要在我的内核上应用一个小补丁(我正在运行Debian 10)。 然后,我想测试这个内核,以确保更改有效 我不想卸载当前稳定的工作内核,以防出现故障,需要返回 为此,我将继续努力。我成功地运行了测试补丁脚本,它应用了我的补丁并编译了内核 这创建了一些.deb文件。但安装失败-请参阅下文 $ sudo dpkg -i linux-image-4.19.0-5-amd64-unsigned_4.19.37-5+deb10u2a~test_amd64.deb [sudo] password for

我需要在我的内核上应用一个小补丁(我正在运行Debian 10)。
然后,我想测试这个内核,以确保更改有效

我不想卸载当前稳定的工作内核,以防出现故障,需要返回

为此,我将继续努力。我成功地运行了
测试补丁
脚本,它应用了我的补丁并编译了内核

这创建了一些
.deb
文件。但安装失败-请参阅下文

$ sudo dpkg -i linux-image-4.19.0-5-amd64-unsigned_4.19.37-5+deb10u2a~test_amd64.deb 
[sudo] password for jrw: 
Selecting previously unselected package linux-image-4.19.0-5-amd64-unsigned.
dpkg: considering removing linux-image-4.19.0-5-amd64 in favour of linux-image-4.19.0-5-amd64-unsigned ...
dpkg: no, cannot proceed with removal of linux-image-4.19.0-5-amd64 (--auto-deconfigure will help):
 linux-image-amd64 depends on linux-image-4.19.0-5-amd64
  linux-image-4.19.0-5-amd64 is to be removed.

dpkg: regarding linux-image-4.19.0-5-amd64-unsigned_4.19.37-5+deb10u2a~test_amd64.deb containing linux-image-4.19.0-5-amd64-unsigned:
 linux-image-4.19.0-5-amd64-unsigned conflicts with linux-image-4.19.0-5-amd64
  linux-image-4.19.0-5-amd64 (version 4.19.37-5+deb10u1) is present and installed.

dpkg: error processing archive linux-image-4.19.0-5-amd64-unsigned_4.19.37-5+deb10u2a~test_amd64.deb (--install):
 conflicting packages - not installing linux-image-4.19.0-5-amd64-unsigned
Errors were encountered while processing:
 linux-image-4.19.0-5-amd64-unsigned_4.19.37-5+deb10u2a~test_amd64.deb
现在,我想这是有道理的。我已经安装了4.19内核,因此它与我新的、稍加修补的4.19包冲突

但这里的标准程序是什么?
如何让这两个内核同时安装?

最终,我通过调整
debian/config/defines
中的“abiname”设置来解决这个问题。这会导致它创建一个与我安装的包名称(稍有不同)的包,以便它们可以并排共存

我从警察那里得到了这个建议