howto install linux-headers



  • Hi,
    I need install linux-headers but it isn't found.
    The kernel version is "3.10.93+".
    When I try to install with:
    sudo apt install linux-headers-$(uname -r)
    it returns:
    E: No se ha podido localizar el paquete linux-headers-3.10.93
    E: No se pudo encontrar ningĂșn paquete usando "*" con "linux-headers-3.10.93"
    Thank's
    Do I need to add any repository to apt/sources.lst?
    Do I have to update the kernel?



  • Why do you think you need to install this on the phone? You almost certainly don't.

    Of course such a package is not available, because the kernel is from Android, not Ubuntu.



  • I need it to compile a library that use my program.



  • Each phone has a different kernel, so if whatever you need depends on the kernel headers matching the specific kernel that is running, then it won't work on the phone.

    In Libertine though, you can simply install the linux-headers-generic package to get the normal Ubuntu kernel headers available to compile against, if you really want to compile stuff on a phone.



  • Hi!

    I try to install anbox on bq aquaris FD m10, but the "usual" installation does not work. So I tried installing the whole Anbox in a libertine container, and compile the necessary ashmem and binder modules for that container. But I run into the same problem - can't build the module with dkms...



  • @hankschwie Hi, probably you are searching for the following guide (from the documentation):
    http://docs.ubports.com/en/latest/userguide/dailyuse/anbox.html

    Installing Anbox on an Ubuntu Touch device is different from installing it on desktop Ubuntu.

    For desktop install:
    https://docs.anbox.io/userguide/install.html



  • @Capsia
    Thanks for your efforts... I do know the methods you posted, I did try to use the first (I referred to it as the "usual" way, it worked flawlessly with my fairphone2 on many occasions...). There is a bug report on github https://github.com/ubports/anbox/issues/34, and a thread here https://forums.ubports.com/topic/2789/anbox-question-on-bq-m10-hd-cooler too, for the BQ HD m10.

    I am aware, too, that the installation for desktop ubuntu is quite different, and can't be used for Ubuntu Touch.

    My idea was to use a libertine container, in which the necessary modules (which you would need for an older desktop version as well, if you wouldn't want to use a snap package) could be build, and use the anbox-ubuntu-touch package to install and run anbox from within the container. Instructions and source code can be found on https://github.com/anbox/anbox-modules .

    The problem is that dkms has to be executed as root; but it seems like there is no "container-root user" , and the build command fails because it tries to use the kernel headers form the "outer" system - which are not available - and not the kernel headers I had installed within the libertine confinement.

    It didn't help to use dkms options to search for the kernel sources within the container, either.

    So the question is: is it possible to build the required kernel modules within the container and install them within the contained system, or is it a misconception on my part, and impossible within a libertine container...
    ,



  • @hankschwie said in howto install linux-headers:

    So the question is: is it possible to build the required kernel modules within the container and install them within the contained system, or is it a misconception on my part, and impossible within a libertine container...

    No. The container does not work this way, and the kernel is still the android kernel. You cannot install anbox inside the container in this manner.



  • @dobey
    Ok, thanks. Then I'll have to wait 'til someone fixes this.


Log in to reply