我已经将 Ubuntu 18.04 升级到 19.04。升级操作系统后,VMware 15 停止工作。我重新安装了 VMware 15,但仍然弹出“VMware 内核模块更新程序”窗口,并显示“在运行 VMware 之前,必须编译几个模块并将其加载到正在运行的内核中”。单击安装按钮后,系统显示无法启动服务的错误。有人能告诉我如何解决这个问题吗?
答案1
Milo83!我也遇到了这个问题,下面的代码对我有用。
#!/bin/bash
#make sure you have git. if you don't, run: sudo apt-get install git
#copy and paste this code into a .sh file. e.g. vmwareFix.sh
#run: chmod 744 <filename.sh, e.g. vmwareFix.sh>
#then run this file: /path/to/this/script
VMWARE_VERSION=workstation-15.0.4
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
make
sudo make install
sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
/usr/lib/vmware/lib/libz.so.1/libz.so.1
sudo /etc/init.d/vmware restart
说明在上面的评论中。再见。