gpt4 book ai didi

linux - 应用补丁 - 'file already exists' 失败

转载 作者:太空宇宙 更新时间:2023-11-04 11:06:35 25 4
gpt4 key购买 nike

我正在尝试应用补丁并收到补丁失败消息,指出文件已经存在(kgdb 补丁到内核,但问题是任何此类补丁失败的一般问题)。遇到这种情况怎么办?

ubuntu@ubuntu-laptop:~/dvrrdk/DVRRDK_04.01.00.02/ti_tools/linux_lsp/kernel/linux-dvr-rdk$        
patch -p1 < /media/sf_VMshar/gdb_patch/linux-2.6.15.5-kgdb-2.4/core-lite.patch
patching file Documentation/DocBook/Makefile
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file Documentation/DocBook/Makefile.rej
The next patch would create the file Documentation/DocBook/kgdb.tmpl,
which already exists! Assume -R? [n] ^C

谢谢,冉

最佳答案

$ patch -p1 < /media/sf_VMshar/gdb_patch/linux-2.6.15.5-kgdb-2.4/core-lite.patch
patching file Documentation/DocBook/Makefile
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file Documentation/DocBook/Makefile.rej
The next patch would create the file Documentation/DocBook/kgdb.tmpl,
which already exists! Assume -R? [n] ^C

1 个大块中有 1 个失败——将拒绝保存到文件 Documentation/DocBook/Makefile.rej
是因为该补丁不适用于此内核版本以及
下一个补丁打算创建一个文件Documentation/DocBook/kgdb.tmpl,它已经存在于您的源代码中

Conclusion: You will have to manually apply the patch

关于linux - 应用补丁 - 'file already exists' 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25036485/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com