Ubuntu运行vmware时报错Vmware Unable to install all modules!Use shipped Linux kernel AIO access library解决。

ubuntu运行vmware时报错:

Vmware Unable to install all modules

命令:

vmware --version  

提示下面内容:

[AppLoader] Use shipped Linux kernel AIO access library. An up-to-date "libaio" or "libaio1" package from your system is preferred. VMware Workstation 16.1.2 build-17966106

 直接干货:

创建一个名为 vmware.sh 的脚本文件,并在文件中添加以下的内容:

#!/bin/bash

VMWARE_VERSION=workstation-16.2.3
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

对vmware.sh进行运行编译安装

chmod +x vmware.sh

./vmware.sh
显示最后没有报错,就安装成功

Ubuntu运行vmware时报错Vmware Unable to install all modules!Use shipped Linux kernel AIO access library解决。_第1张图片

 再次运行vmware 就能成功打开了。

你可能感兴趣的:(Linux,ubuntu,CentOS,1024程序员节,ubuntu,vmware)