解决报错:Can't read private key和./build-aux/cksum-schema-check: Permission denied

下午在编译和安装openvswitch-2.10.1的Linux内核模块时报错:

cd datapath/linux && make modules_install
make[1]: Entering directory `/home/mininet/openvswitch-2.10.1/datapath/linux'
make -C /lib/modules/4.2.0-27-generic/build M=/home/mininet/openvswitch-2.10.1/datapath/linux modules_install
make[2]: Entering directory `/usr/src/linux-headers-4.2.0-27-generic'
  INSTALL /home/mininet/openvswitch-2.10.1/datapath/linux/openvswitch.ko
Can't read private key
  INSTALL /home/mininet/openvswitch-2.10.1/datapath/linux/vport-geneve.ko
Can't read private key
  INSTALL /home/mininet/openvswitch-2.10.1/datapath/linux/vport-gre.ko
Can't read private key
  INSTALL /home/mininet/openvswitch-2.10.1/datapath/linux/vport-lisp.ko
Can't read private key
  INSTALL /home/mininet/openvswitch-2.10.1/datapath/linux/vport-stt.ko
Can't read private key
  INSTALL /home/mininet/openvswitch-2.10.1/datapath/linux/vport-vxlan.ko
Can't read private key
  DEPMOD  4.2.0-27-generic
make[2]: Leaving directory `/usr/src/linux-headers-4.2.0-27-generic'
depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' /lib/modules/4.2.0-27-generic/build/include/generated/utsrelease.h`
make[1]: Leaving directory `/home/mininet/openvswitch-2.10.1/datapath/linux'

然后我发现其实进行make的时候已经有报错了:

ake  all-recursive
make[1]: Entering directory `/home/mininet/openvswitch-2.10.1'
Making all in datapath
make[2]: Entering directory `/home/mininet/openvswitch-2.10.1/datapath'
Making all in linux
make[3]: Entering directory `/home/mininet/openvswitch-2.10.1/datapath/linux'
make -C /lib/modules/4.2.0-27-generic/build M=/home/mininet/openvswitch-2.10.1/datapath/linux modules
make[4]: Entering directory `/usr/src/linux-headers-4.2.0-27-generic'
  Building modules, stage 2.
  MODPOST 6 modules
make[4]: Leaving directory `/usr/src/linux-headers-4.2.0-27-generic'
make[3]: Leaving directory `/home/mininet/openvswitch-2.10.1/datapath/linux'
make[3]: Entering directory `/home/mininet/openvswitch-2.10.1/datapath'
make[3]: Leaving directory `/home/mininet/openvswitch-2.10.1/datapath'
make[2]: Leaving directory `/home/mininet/openvswitch-2.10.1/datapath'
make[2]: Entering directory `/home/mininet/openvswitch-2.10.1'
./build-aux/cksum-schema-check vswitchd/vswitch.ovsschema vswitchd/vswitch.ovsschema.stamp
/bin/bash: ./build-aux/cksum-schema-check: Permission denied
make[2]: *** [vswitchd/vswitch.ovsschema.stamp] Error 126
make[2]: Leaving directory `/home/mininet/openvswitch-2.10.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mininet/openvswitch-2.10.1'
make: *** [all] Error 2

我的解决方案如下:

apt-get install linux-headers-$(uname -r)
apt-get install aptitude && aptitude install dh-autoreconf
apt install libelf-dev

然后重新进行make:

make clean && make && make install && make modules_install

内核模块就安装成功了。
参考资料:application development - module verification failed signature and/or required key missing - Ask Ubuntu

你可能感兴趣的:(SDN,行走的问题解决机)