anbox / anbox-modules

Anbox kernel modules
327 stars 224 forks source link

Failed to install using DKMS on Kali Linux #97

Open rsoley opened 2 years ago

rsoley commented 2 years ago

INSTALL.sh outputs the following.

Creating symlink /var/lib/dkms/anbox-ashmem/1/source -> /usr/src/anbox-ashmem-1

Building module: cleaning build area... make -j2 KERNELRELEASE=5.16.0-kali7-amd64 all KERNEL_SRC=/lib/modules/5.16.0-kali7-amd64/build....(bad exit status: 2) Error! Bad return status for module build on kernel: 5.16.0-kali7-amd64 (x86_64) Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information. Creating symlink /var/lib/dkms/anbox-binder/1/source -> /usr/src/anbox-binder-1

Building module: cleaning build area... make -j2 KERNELRELEASE=5.16.0-kali7-amd64 all KERNEL_SRC=/lib/modules/5.16.0-kali7-amd64/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 5.16.0-kali7-amd64 (x86_64) Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information. binder_linux 225280 0 ashmem_linux 20480 0 crw------- 1 root root 10, 123 Jul 10 06:28 /dev/ashmem crw------- 1 root root 10, 122 Jul 10 06:28 /dev/binder`

If I try to install manually, everything goes right until I run dkms to process the packages, where I get this error

┌──(rafe㉿rtd)-[~/anbox-modules] └─$ sudo dkms install anbox-ashmem/1

Building module: cleaning build area... make -j2 KERNELRELEASE=5.16.0-kali7-amd64 all KERNEL_SRC=/lib/modules/5.16.0-kali7-amd64/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 5.16.0-kali7-amd64 (x86_64) Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.`

Any ways around this??

Im running Kali GNU/Linux Rolling x86_64 with the 5.16.0-kali7-amd64

SoulInfernoDE commented 1 year ago

Here is the solution: (Adapt for your distro)

https://github.com/anbox/anbox-modules/issues/75

Also remove the modules completly from the dkms system.

sudo dkms status

nagtutitf6 commented 1 year ago

i have install dkms but cant find it