teleshoes / tpacpi-bat

ThinkPad ACPI Battery Util
GNU General Public License v3.0
434 stars 43 forks source link

Failed installation - modprobe: ERROR: could not insert 'acpi_call': Operation not permitted #109

Closed JulesLecuir closed 10 months ago

JulesLecuir commented 1 year ago

Hi,

Here is what I get when I clone the repo and run sudo perl ./install.pl:

sudo cp tpacpi-bat /usr/bin
git fetch
git reset HEAD --hard
HEAD is now at 5d37ce7 Merge pull request #22 from dunkaist/master
git clean -fd
Removing acpi_call.mod
git checkout origin/master
HEAD is now at 5d37ce7 Merge pull request #22 from dunkaist/master
make
make -C /lib/modules/5.15.0-56-generic/build M=/tmp/acpi_call modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-56-generic'
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-56-generic'
sudo make install
make -C /lib/modules/5.15.0-56-generic/build M=/tmp/acpi_call modules_install
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-56-generic'
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
  INSTALL /lib/modules/5.15.0-56-generic/extra/acpi_call.ko
  SIGN    /lib/modules/5.15.0-56-generic/extra/acpi_call.ko
At main.c:160:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  /lib/modules/5.15.0-56-generic
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-56-generic'
sudo depmod
sudo modprobe acpi_call
modprobe: ERROR: could not insert 'acpi_call': Operation not permitted
error running 'sudo modprobe acpi_call'

I own a Thinkpad T480 with Ubuntu 22.04.1 installed.

Not qualified enough to debug this by myself, but I can give more logs data if needed :) Thanks !

teleshoes commented 10 months ago

oops, sorry to ignore this for so long, didnt see it. i hope you sorted it. if not...im afraid i cant really help. you seem to have a problem with the kernel module (ssl error and missing pem), as well as the operation not permitted, which is quite odd for the root user. good luck!