解决:Before you can run Vmware, several modules must be compiled and loaded into the running kernel

在Ubuntu系统中安装VMware时遇到启动错误,提示需要编译并加载Linux Kernel Headers。通过运行sudo apt-get update,sudo apt-get install build-essential linux-headers-$(uname -r)安装必要组件,然后从GitHub克隆并编译vmware-host-modules项目,最终成功解决问题,能够正常打开VMware安装页面。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、问题

详情见博客Ubuntu软件非Deepin安装(Typora、微信、Anaconda、有道词典、VMware)

在Ubuntu系统中安装VMware,图标成功显示在程序中,但是打开进行Install时报错如下

image-20220719155352245

关闭后报错Before you can run Vmware, several modules must be compiled and loaded into the running kernel.

这是需要更新 Linux Kernel Headers

二、解决

运行如下代码

sudo apt-get update
sudo apt-get install build-essential linux-headers-$(uname -r)
git clone https://github.com/mkubecek/vmware-host-modules.git
cd vmware-host-modules
git checkout workstation-16.2.3   # 根据自己的版本调整
sudo make
sudo make install

再次打开虚拟机,发现正常出现安装页面

image-20220719160155193

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值