出现这个错误是因为下载下来的vmmon/vmnet待编译安装包未跟随linux更新。
需要从github上重新下载,并选择对应的版本进行编译
#! /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 origin/tmp/workstation-16.2.3-k5.19 -b $VMWARE_VERSION
#git fetch
make
sudo make install
正确执行后,需要重启ubuntu