Error when installing from source: binary package for anbox-ashmem: 1 not found
When following your install instructions here on GitHub, the last step - building and installing ashem and binder - gives me an error message for each of the modules.
Error message for sudo dkms install anbox-ashmem/1:
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.8.0-63-generic all KERNEL_SRC=/lib/modules/5.8.0-63-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-ashmem: 1 not found
Error! Bad return status for module build on kernel: 5.8.0-63-generic (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.
Error message for sudo dkms install anbox-binder/1:
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.8.0-63-generic all KERNEL_SRC=/lib/modules/5.8.0-63-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-binder: 1 not found
Error! Bad return status for module build on kernel: 5.8.0-63-generic (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
I'm running Ubuntu 20.04.2 LTS and my Linux kernel version is 5.8.0-63-generic.
As everywhere stated, compiling the modules is not possible anymore with kernel versions above 5.7.
The function "callsyms_lookup_name" anbox modules are using has been removed from the kernels itself above 5.7.
There are three solutions for this:
- Downgrade to a 5.6 or earlier kernel.
- hack a patch into your kernel to enable that function again (and open a security concern in your kernel again)
- compile your kernel from source with the modules built in (which is the solution preferred from the kernel maintainers)
To use the third method you can have look at my writeup here: https://github.com/anbox/anbox-modules/issues/75#issuecomment-794079944
best regards SI
Hi @abstractionmage ,
You can try this fork. This works for me on Ubuntu 22.04 and Linux kernel 5.15.
Hi @abstractionmage ,
You can try this fork. This works for me on Ubuntu 22.04 and Linux kernel 5.15.
Hello, that also belongs to solution number two, module/kernel patched dirty :smile:
my kernel is linux headers 5.4.0 ubuntu 23.04 and i got that error
why you can try install the modules with apt, type: sudo add-apt-repository ppa:morphis/anbox-support sudo apt-get install linux-headers-generic anbox-modules-dkms
my error is: ERROR (dkms apport): binary package for anbox-ashmem: 1 not found Error! Bad return status for module build on kernel: 6.4.0-060400-generic (x86_64) Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.
and if any person have the solution, answer me here pls, i thanks her/his :+1: :) .
Hi @abstractionmage , You can try this fork. This works for me on Ubuntu 22.04 and Linux kernel 5.15.
Hello, that also belongs to solution number two, module/kernel patched dirty 😄
In: hack a patch into your kernel to enable that function again (and open a security concern in your kernel again) how i do this? Soul.