Ubuntu 编译 Linux 内核经常会遇到如下错误:
如果报错 canonical-certs.pem:
如下:
make[1]: *** No rule to make target ‘debian/canonical-certs.pem’, needed by ‘certs/x509_certificate_list’. Stop.
make: *** [Makefile:1868: certs] Error 2
在命令行中执行:
scripts/config --disable SYSTEM_TRUSTED_KEYS
如果报错 canonical-revoked-certs.pem:
如下:
make[1]: *** No rule to make target ‘debian/canonical-revoked-certs.pem’, needed by ‘certs/x509_revocation_list’. Stop.
make: *** [Makefile:1868: certs] Error 2
在命令行中执行:
scripts/config --disable SYSTEM_REVOCATION_KEYS
参考
https://blog.csdn.net/m0_47696151/article/details/121574718
https://askubuntu.com/questions/1329538/compiling-the-kernel-5-11-11