错误而在Linux Mint的编译Linux内核17
问题描述:
我有以下的错误,而试图在Linux上薄荷肉桂64位编译Linux核心错误而在Linux Mint的编译Linux内核17
linux-3.17.1 # make modules_install
INSTALL arch/x86/crypto/aes-x86_64.ko
Can't read private key
make[1]: *** [arch/x86/crypto/aes-x86_64.ko] Error 2
make: *** [_modinst_] Error 2
此命令(模块了#make)已成功完成,没有任何错误。 安装了gcc,build-essentials和g ++。
系统在虚拟机上运行4核+ 3 GB内存+ 40GB可用空间。
答
当我尝试在Ubuntu 14.04上编译内核3.17.6时,我遇到了这个问题。我终于发现这个错误仅仅是因为make
进程没有正确完成。就像描述的错误一样,Can't read private key.
在某些步骤编译内核时会生成私钥。消息是这样的:
###
### Now generating an X.509 key pair to be used for signing modules.
###
### If this takes a long time, you might wish to run rngd in the
### background to keep the supply of entropy topped up. It
### needs to be run as root, and uses a hardware random
### number generator if one is available.
###
openssl req -new -nodes -utf8 -"sha512" -days 36500 \
-batch -x509 -config x509.genkey \
-outform DER -out signing_key.x509 \
-keyout signing_key.priv 2>&1
Generating a 4096 bit RSA private key
..................................................................................++
............++
writing new private key to 'signing_key.priv'
-----
###
### Key pair generated.
###
的原因,我没有意识到失败的make
是我用make -j 16
让16个过程同时编译和被覆盖的错误。我因使用未安装bc的Ubuntu服务器而失败。
我希望这些信息能帮到你。
答
为了解决这个错误,我跑了make,先编译内核。我正在尝试make modules_install而不先编译内核。因此我跑了以下。
使
您也可以使用make -B强制编译甚至已经被编译的软件包。有时会在两者之间失败,当make重新运行时,make会看到一些已编译的包,尽管它们不是。 – 2016-03-13 05:04:38