找到 /opt/VBoxGuestAdditions-6.0.4/src/vboxguest-6.0.4/vboxsf/vfsmod.c,将
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)# include <linux/mount.h>#endif
修改成#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)# include <uapi/linux/mount.h> /* for MS_REMOUNT */#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)# include <linux/mount.h>#endif
即可。