UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    howto install linux-headers

    Scheduled Pinned Locked Moved OS
    9 Posts 4 Posters 1.8k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • E Offline
        ereus
        last edited by ereus

        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?

        1 Reply Last reply Reply Quote 0
        • dobeyD Offline
          dobey
          last edited by

          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.

          hankschwieH 1 Reply Last reply Reply Quote 0
          • E Offline
            ereus
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • dobeyD Offline
              dobey
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • hankschwieH Offline
                hankschwie @dobey
                last edited by

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

                C 1 Reply Last reply Reply Quote 0
                • C Offline
                  Capsia @hankschwie
                  last edited by

                  @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

                  hankschwieH 1 Reply Last reply Reply Quote 1
                  • hankschwieH Offline
                    hankschwie @Capsia
                    last edited by hankschwie

                    @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...
                    ,

                    dobeyD 1 Reply Last reply Reply Quote 0
                    • dobeyD Offline
                      dobey @hankschwie
                      last edited by

                      @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.

                      hankschwieH 1 Reply Last reply Reply Quote 0
                      • hankschwieH Offline
                        hankschwie @dobey
                        last edited by hankschwie

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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post