anbox / anbox-modules

Anbox kernel modules
327 stars 224 forks source link

Installation errors #86

Open stemy2 opened 2 years ago

stemy2 commented 2 years ago

Hello,

I have some problems during the installation process. After addong the ppa and doing an apt update, i get this:

Err :12 http://ppa.launchpad.net/morphis/anbox-support/ubuntu hirsute Release
  404  Not Found [IP : 91.189.95.85 80]
Lecture des listes de paquets... Fait
E: Repository http://ppa.launchpad.net/morphis/anbox-support/ubuntu hirsute Release doesn't have Release file.
N: Updates from such a repository cannot be done securely, and are therefore disabled by default.

So i installed the deb file manually. But now, i can't install the headers.

stem@stem-PC:~$ sudo apt install linux-headers-generic
[sudo] Mot de passe de stem : 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
linux-headers-generic est déjà la version la plus récente (5.11.0.37.39).
linux-headers-generic passé en « installé manuellement ».
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  libayatana-appindicator3-1 libayatana-ido3-0.4-0 libayatana-indicator3-7 libcanberra-gtk3-0 libcanberra-gtk3-module
  libclutter-1.0-0 libclutter-1.0-common libclutter-gtk-1.0-0 libcogl-common libcogl-pango20 libcogl-path20 libcogl20
  libdbus-c++-1-0v5 libecore1 libeina1a libglyr1 libkeybinder-3.0-0 libpeas-1.0-0 libpeas-common libsecp256k1-0
  libtagc0 libtotem-plparser-common libtotem-plparser18
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] 
Paramétrage de anbox-modules-dkms (13~disco1) ...
Removing old anbox-1 DKMS files...

------------------------------
Deleting module version: 1
completely from the DKMS tree.
------------------------------
Done.
Loading new anbox-1 DKMS files...
Building for 5.11.0-37-generic
Building initial module for 5.11.0-37-generic
Error! Bad return status for module build on kernel: 5.11.0-37-generic (x86_64)
Consult /var/lib/dkms/anbox/1/build/make.log for more information.
dpkg: erreur de traitement du paquet anbox-modules-dkms (--configure) :
 installed anbox-modules-dkms package post-installation script subprocess returned error exit status 10
Des erreurs ont été rencontrées pendant l'exécution :
 anbox-modules-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
goisneto commented 2 years ago

try this -> https://github.com/anbox/anbox-modules/issues/84#issuecomment-953320510

SoulInfernoDE commented 2 years ago

Do not try to compile the modules for newer kernels as it is not possible anymore. Instead you need to compile THE KERNEL itself with the modules options enabled in the config file as the modules had been migrated to the newer kernels but some code had been removed that prevents you from building/using the modules standalone for security reasons.

You can look at my tutorial/notice i wrote down to address the issue for myself or use my precompiled kernels (with the android config options pre-enabled) if you are using a ubuntu distribution. https://github.com/anbox/anbox-modules/issues/75#issuecomment-794079944