Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

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

Open
abstractionmage opened this issue Jul 21, 2021 · 7 comments

Comments

@abstractionmage
Copy link

abstractionmage commented Jul 21, 2021

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
Copy link

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:
#75 (comment)

best regards
SI

@haipnh
Copy link

haipnh commented Apr 7, 2023

Hi @abstractionmage ,

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

@SoulInfernoDE
Copy link

SoulInfernoDE commented May 9, 2023

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 😄

@FrankeyUser
Copy link

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

@FrankeyUser
Copy link

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
Copy link

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

@FrankeyUser
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants