Hello!
I’m getting a weird error when running anything apt install related. For example:
$ sudo apt remove aisleriot
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'aisleriot' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up sysdig-dkms (0.27.1-0.3ubuntu0.4) ...
Removing old sysdig-0.27.1 DKMS files...
Deleting module sysdig-0.27.1 completely from the DKMS tree.
Loading new sysdig-0.27.1 DKMS files...
Building for 5.15.136-tegra
Building initial module for 5.15.136-tegra
ERROR (dkms apport): kernel package linux-headers-5.15.136-tegra is not supported
Error! Bad return status for module build on kernel: 5.15.136-tegra (aarch64)
Consult /var/lib/dkms/sysdig/0.27.1/build/make.log for more information.
dpkg: error processing package sysdig-dkms (--configure):
installed sysdig-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
sysdig-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried opening the make.log file, pasting the head and tail here given it’s over 4000 lines long. I can try a paste if you’d like the whole thing.
DKMS make.log for sysdig-0.27.1 for kernel 5.15.136-tegra (aarch64)
Sun Aug 25 05:17:40 PM PDT 2024
make: Entering directory '/usr/src/linux-headers-5.15.136-tegra-ubuntu22.04_aarch64/3rdparty/canonical/linux-jammy/kernel-source'
CC [M] /var/lib/dkms/sysdig/0.27.1/build/main.o
CC [M] /var/lib/dkms/sysdig/0.27.1/build/dynamic_params_table.o
CC [M] /var/lib/dkms/sysdig/0.27.1/build/fillers_table.o
CC [M] /var/lib/dkms/sysdig/0.27.1/build/flags_table.o
CC [M] /var/lib/dkms/sysdig/0.27.1/build/ppm_events.o
CC [M] /var/lib/dkms/sysdig/0.27.1/build/ppm_fillers.o
CC [M] /var/lib/dkms/sysdig/0.27.1/build/event_table.o
CC [M] /var/lib/dkms/sysdig/0.27.1/build/syscall_table.o
CC [M] /var/lib/dkms/sysdig/0.27.1/build/ppm_cputime.o
/var/lib/dkms/sysdig/0.27.1/build/main.c: In function ‘drop_event’:
/var/lib/dkms/sysdig/0.27.1/build/main.c:1535:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
1535 | nanoseconds rem;
| ^~~~~~~~~~~
/var/lib/dkms/sysdig/0.27.1/build/syscall_table.c:60:23: error: ‘SYSCALL_TABLE_ID0’ undeclared here (not in a function); did you mean ‘SYSCALL_TABLE_SIZE’?
60 | [__NR_close - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_CLOSE_E, PPME_SYSCALL_CLOSE_X},
| ^~~~~~~~~~~~~~~~~
| SYSCALL_TABLE_SIZE
In file included from ./arch/arm64/include/uapi/asm/unistd.h:25,
from ./arch/arm64/include/asm/unistd.h:47,
from /var/lib/dkms/sysdig/0.27.1/build/syscall_table.c:22:
./include/uapi/asm-generic/unistd.h:185:20: error: array index in initializer not of integer type
[ over 4000 lines of similar errors in code ]
| ^~~
/var/lib/dkms/sysdig/0.27.1/build/syscall_table.c:969:10: note: in expansion of macro ‘__NR_renameat2’
969 | [__NR_renameat2 - SYSCALL_TABLE_ID0] = PPM_SC_RENAMEAT2,
| ^~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:295: /var/lib/dkms/sysdig/0.27.1/build/syscall_table.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/var/lib/dkms/sysdig/0.27.1/build/main.c: In function ‘syscall_exit_probe’:
/var/lib/dkms/sysdig/0.27.1/build/main.c:2023:28: error: ‘SYSCALL_TABLE_ID0’ undeclared (first use in this function); did you mean ‘SYSCALL_TABLE_SIZE’?
2023 | table_index = id - SYSCALL_TABLE_ID0;
| ^~~~~~~~~~~~~~~~~
| SYSCALL_TABLE_SIZE
make[1]: *** [scripts/Makefile.build:295: /var/lib/dkms/sysdig/0.27.1/build/main.o] Error 1
make[1]: *** [scripts/Makefile.build:295: /var/lib/dkms/sysdig/0.27.1/build/ppm_fillers.o] Error 1
make: *** [Makefile:1912: /var/lib/dkms/sysdig/0.27.1/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.15.136-tegra-ubuntu22.04_aarch64/3rdparty/canonical/linux-jammy/kernel-source'
Also tried to reinstall the kernel package but cant find it.
$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-5.15.136-tegra
E: Couldn't find any package by glob 'linux-headers-5.15.136-tegra'
E: Couldn't find any package by regex 'linux-headers-5.15.136-tegra'
Posting it here because I assume this is an error related to the custom install required for the Jetson. Any help appreciated!