首页 > 解决方案 > 在带有问号的终端中为 linux 内核应用补丁

问题描述

我想构建linux-rt内核,下载kernelpatchkernel.org网站下载后,我像文档一样运行此命令:

gzip -cd ../patch-5.11.4-rt11.patch.gz | patch -p1 --verbose {}

现在我第一次看到这条线

patching file {}
Using Plan A...
Hunk #1 FAILED at 35.
1 out of 1 hunk FAILED -- saving rejects to file {}.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/include/linux/rbtree.h b/include/linux/rbtree.h
|index d7db179963221..c33b0e16d04b4 100644
|--- a/include/linux/rbtree.h
|+++ b/include/linux/rbtree.h
--------------------------
patching file {}
Using Plan A...
Hunk #1 FAILED at 19.
Hunk #2 FAILED at 112.
2 out of 2 hunks FAILED -- saving rejects to file {}.rej
Hmm...The next patch would create the file {},
which already exists!  Assume -R? [n] 

应该按哪个键来应用这个补丁?

标签: linuxubuntulinux-kerneldebian

解决方案


推荐阅读