我无法在Ubuntu 18.04 LTS上安装Parallels Tools。这是错误日志:

Started installation of Parallels Guest Tools version '13.3.0.43321'

Thu Apr 26 21:45:11 PDT 2018
Start installation or upgrade of Guest Tools
new version of parallels tools
Installed Guest Tools were not found
Perform installation into the /usr/lib/parallels-tools directory
cat: /usr/lib/parallels-tools/kmods/../version: No such file or directory
make: Entering directory '/usr/lib/parallels-tools/kmods'
cd prl_eth/pvmnet && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
make -C /lib/modules/4.15.0-20-generic/build M=/usr/lib/parallels-tools/kmods/prl_eth/pvmnet
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CC [M]  /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/pvmnet.o
  LD [M]  /usr/lib/parallels-tools/kmods/prl_eth/pvmnet/prl_eth.o
  Building modules, stage 2.
  MODPOST 1 modules
FATAL: modpost: GPL-incompatible module prl_eth.ko uses GPL-only symbol 'sev_enable_key'
scripts/Makefile.modpost:92: recipe for target '__modpost' failed
make[3]: *** [__modpost] Error 1
Makefile:1555: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-20-generic'
/usr/lib/parallels-tools/kmods/prl_eth/pvmnet/Makefile.v26:11: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
Makefile.kmods:34: recipe for target 'installme' failed
make: *** [installme] Error 2
make: Leaving directory '/usr/lib/parallels-tools/kmods'
Error: could not build kernel modules
Error: failed to install kernel modules
Error: failed to install Parallels Guest Tools!
Please, look at /var/log/parallels-tools-install.log file for more information.

但是,在Ubuntu 16.04 LTS上安装Parallels Tools时,一切正常。

最佳答案

Parallels Tools无法在内核4.15+上构建所需的内核模块。

参见https://forum.parallels.com/threads/fail-to-build-kernel-modules-on-linux-kernel-v4-15.343748/

作为一种解决方法,您可以尝试降级到4.14,但是我看不到任何带有预编译的4.14的内核软件包。您可能需要重新编译或查看以前的任何日报是否有4.14(不建议使用tho)。

解决方案:WAITINGParallels发布更新。

关于ubuntu - 无法在Ubuntu 18.04 LTS上安装Parallels Tools,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50055579/

10-10 14:37