当前在以下系统上运行(cat /etc/os-release 的输出):
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
与 uname -r 的输出相比,它是 5.19.0-35-generic。在我开始尝试安装之前,我不确定这是否真的是一个问题[电子邮件受保护]:dbeniamine/clevo-indicator.git 以更好地控制我的风扇速度。此时,在完成安装的第一部分后,我需要运行以下命令,它给出了以下输出。
sudo ./build_module.sh
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-5.19.0-35-generic is already the newest version (5.19.0-35.36~22.04.1).
linux-source is already the newest version (5.15.0.69.67).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
tar (child): linux-source-5.19.tar.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
./build_module.sh: line 38: cd: linux-source-5.19: No such file or directory
make: *** No rule to make target 'oldconfig'. Stop.
make: *** No rule to make target 'scripts'. Stop.
./build_module.sh: line 41: cd: drivers/acpi: No such file or directory
make: Entering directory '/usr/src/linux-headers-5.19.0-35-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
scripts/Makefile.build:43: /usr/src/Makefile: No such file or directory
make[1]: *** No rule to make target '/usr/src/Makefile'. Stop.
make: *** [Makefile:1850: /usr/src] Error 2
make: Leaving directory '/usr/src/linux-headers-5.19.0-35-generic'
insmod: ERROR: could not load module ec_sys.ko: No such file or directory
Failed to insert the module, something might have failed during build
我现在不确定为什么会丢失或如何将其添加回来/需要安装什么来解决此问题。我应该注意所有这一切的最初原因只是为了正确检测我机器中的风扇,如下:https://www.reddit.com/r/System76/comments/lzz5i1/fan_speed_control_on_serval_ws/。这是因为我持续过热,我认为这是由于某些东西安装不正确造成的。如果有人知道如何解决这个问题,那就太好了!