ubuntu22.04 VMware17.5

一、问题:

Before you can run VMware, several modules must be compiled and loaded into the running kernel.

GCC

GNU C Compiler (gcc) version 12.3.0 was not found. If you installed it in a non-default path you can specify the path below. Otherwise refer to your distribution's documentation for installation instructors and click Refresh to search again in default locations.

二、原因

"软件更新器"弹出的更新,然后更新了内核导致。

bash 复制代码
# 查看安装的内核
dpkg --list | grep linux-image
# 查看当前使用的内核
uname -r

看看是不是内核变成了6.5.0-15-generic。

三、解决

内核降级

bash 复制代码
sudo apt-get install linux-headers-6.2.0-39-generic
sudo apt-get install linux-image-6.2.0-39-generic
sudo apt-get install linux-modules-6.2.0-39-generic
sudo apt-get install linux-modules-extra-6.2.0-39-generic

更改启动时默认使用的内核:

bash 复制代码
sudo vim /etc/default/grub

将GRUB_DEFAULT=0改为GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 6.2.0-39-generic"

# 刷新:
sudo update-grub
相关推荐
Web3探索者1 天前
可视化服务器管理和传统命令行区别是什么?新手教程:Linux 运维到底该用图形界面还是 SSH 命令行?
linux·ssh
zylyehuo1 天前
Linux系统中网线与USB网络共享冲突
linux
Sokach10153 天前
Linux Shell 脚本从零到能用:一个新手的一天学习总结
linux
AlfredZhao3 天前
Docker 容器时区不对,`timedatectl` 不存在怎么办?
linux·timezone
zzzzzz3105 天前
9K Star 炸裂开源!这个 C 语言写的代码知识图谱,把 Linux 内核索引压缩到了 3 分钟
linux·服务器·sql
XIAOHEZIcode5 天前
Linux系统鼠标偏移常见原因以及修复方案
linux·运维·游戏
A小辣椒6 天前
TShark:Wireshark CLI 功能
linux
A小辣椒7 天前
TShark:基础知识
linux
AlfredZhao7 天前
OCI 明明分配了 200G 系统盘,为什么 df 只看到 30G?
linux·oci
AlfredZhao7 天前
vi 删除指定范围的行,不用再反复按 dd
linux·vi