anbox / anbox-modules

Anbox kernel modules
327 stars 224 forks source link

Error when installing from source: binary package for anbox-ashmem: 1 not found #82

Open abstractionmage opened 3 years ago

abstractionmage commented 3 years ago

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.

SoulInfernoDE commented 3 years ago

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:

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

haipnh commented 1 year ago

Hi @abstractionmage ,

You can try this fork. This works for me on Ubuntu 22.04 and Linux kernel 5.15.

SoulInfernoDE commented 1 year ago

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:

FrankeyUser commented 11 months ago

my kernel is linux headers 5.4.0 ubuntu 23.04 and i got that error

FrankeyUser commented 10 months ago

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

FrankeyUser commented 10 months ago

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: :) .

FrankeyUser commented 10 months ago

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.