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
相关推荐
嵩山小老虎5 小时前
Windows 10/11 安装 WSL2 并配置 VSCode 开发环境(C 语言 / Linux API 适用)
linux·windows·vscode
Fleshy数模6 小时前
CentOS7 安装配置 MySQL5.7 完整教程(本地虚拟机学习版)
linux·mysql·centos
a41324476 小时前
ubuntu 25 安装vllm
linux·服务器·ubuntu·vllm
一只自律的鸡7 小时前
【Linux驱动】bug处理 ens33找不到IP
linux·运维·bug
17(无规则自律)8 小时前
【CSAPP 读书笔记】第二章:信息的表示和处理
linux·嵌入式硬件·考研·高考
!chen8 小时前
linux服务器静默安装Oracle26ai
linux·运维·服务器
REDcker8 小时前
Linux 文件描述符与 Socket 选项操作详解
linux·运维·网络
蒹葭玉树8 小时前
【C++上岸】C++常见面试题目--操作系统篇(第二十八期)
linux·c++·面试
2501_927773078 小时前
imx6驱动
linux·运维·服务器
hy____1239 小时前
Linux_进程间通信
linux·运维·服务器