ACPI-call crashes on apt upgrade in Ubuntu 22.04

Asked by B K

Hi guys
I need your help :) ...
I have a Thinkpad X1 with an Ubuntu 22.04.
When trying to run

apt upgrade with a 5.15 Kernel I face this error:

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
The following packages have been kept back:
  python3-distupgrade ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
  xserver-xorg-core
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up acpi-call-dkms (1.2.2-1) ...
Removing old acpi-call-1.2.2 DKMS files...
Deleting module acpi-call-1.2.2 completely from the DKMS tree.
Loading new acpi-call-1.2.2 DKMS files...
Building for 5.15.0-56-generic
Building initial module for 5.15.0-56-generic
Error! Bad return status for module build on kernel: 5.15.0-56-generic (x86_64)
Consult /var/lib/dkms/acpi-call/1.2.2/build/make.log for more information.
dpkg: error processing package acpi-call-dkms (--configure):
 installed acpi-call-dkms package post-installation script subprocess returned error exit stat
us 10
Errors were encountered while processing:
 acpi-call-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
➜ linux-headers-5.15.0-56-generic

$ cat /var/lib/dkms/acpi-call/1.2.2/build/make.log
DKMS make.log for acpi-call-1.2.2 for kernel 5.15.0-56-generic (x86_64)
Do 08 Dez 2022 20:23:42 CET
make: Entering directory '/usr/src/linux-headers-5.15.0-56-generic'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make: *** [Makefile:750: include/config/auto.conf] Error 1
make: Leaving directory '/usr/src/linux-headers-5.15.0-56-generic'

Is there something I can do to fix it? I tried
$ sudo apt install --reinstall linux-headers-$(uname -r)
but it didn't really help.

Thanks for your help.

best

basho

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
B K
Solved:
Last query:
Last reply:
Revision history for this message
B K (bash-o) said :
#1

I figured out that acpi-call isn't supported anymore. Uninstalling fixed it. Thanks :)