VMWare Player 升级到 22.04 后无法启动 - 如何修复

VMWare Player 升级到 22.04 后无法启动 - 如何修复

我有这个问题。

在 Ubuntu 22.04(内核 5.17)上安装 VMWare Player

我按照提供的答案操作。在最后一条命令中:

sudo vmware-modconfig --console --install-all

它失败了:

[AppLoader] GLib 不支持 GSettings。分段错误

如果我尝试启动 VMWare Player 并且它尝试将模块编译到内核中,我会在 VMWare 日志中发现许多重复的此类内容:

2022-09-24T02:09:02.435Z In(05) host-5139 /tmp/modconfig-1tm6gJ/vmmon-only/./include/vm_asm_x86.h:67:44: error: expression in static assertion is not constant
2022-09-24T02:09:02.435Z In(05) host-5139    67 |    ASSERT_ON_COMPILE(sizeof(Selector) == 2 &&                                \
2022-09-24T02:09:02.435Z In(05) host-5139       |                      ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-24T02:09:02.435Z In(05) host-5139    68 |                      ((__builtin_constant_p(expr) && ((expr) >> 16) == 0) || \
2022-09-24T02:09:02.435Z In(05) host-5139       |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-24T02:09:02.435Z In(05) host-5139    69 |                       sizeof(expr) <= 2))
2022-09-24T02:09:02.435Z In(05) host-5139       |                       ~~~~~~~~~~~~~~~~~~    
2022-09-24T02:09:02.435Z In(05) host-5139 /tmp/modconfig-1tm6gJ/vmmon-only/./include/vm_assert.h:372:22: note: in definition of macro ‘ASSERT_ON_COMPILE’
2022-09-24T02:09:02.435Z In(05) host-5139   372 |       _Static_assert(e, #e); \
2022-09-24T02:09:02.435Z In(05) host-5139       |                      ^
2022-09-24T02:09:02.435Z In(05) host-5139 /tmp/modconfig-1tm6gJ/vmmon-only/./include/vm_asm_x86.h:263:7: note: in expansion of macro ‘ASSERT_ON_COMPILE_SELECTOR_SIZE’
2022-09-24T02:09:02.435Z In(05) host-5139   263 |       ASSERT_ON_COMPILE_SELECTOR_SIZE(expr);                            \
2022-09-24T02:09:02.435Z In(05) host-5139       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-24T02:09:02.435Z In(05) host-5139 /tmp/modconfig-1tm6gJ/vmmon-only/common/task.c:726:7: note: in expansion of macro ‘SET_TR’
2022-09-24T02:09:02.435Z In(05) host-5139   726 |       SET_TR(tr);
2022-09-24T02:09:02.435Z In(05) host-5139       |       ^~~~~~

我需要做什么?

答案1

好问题 - 我可能有你正在寻找的解决方案。请参阅此视频:https://www.youtube.com/watch?v=bYAdPOSxh8c,您应该尝试按顺序运行这些命令,它将解决问题。

sudo apt install libaio1

sudo apt install build-essential

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt install gcc9

重新运行sudo vmware-modconfig --console --install-all命令并享受!

相关内容