linuxdeploy
linuxdeploy copied to clipboard
Installation failed on LineageOS 18.1 (libc error)
Output on the app:
I: Extracting util-linux... I: Extracting zlib1g... :: Configuring core/mnt ... :: Configuring core/net ... I: Installing core packages... W: Failure trying to run: dpkg --force-depends --install /var/cache/apt/archives/libc6_2.28-10_arm64.deb W: See //debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/libc6_2.28-10_arm64.deb is at fault) <<< deploy
This is what I could get replicating the command manually from the console
Note, this is what my kernel version on lineage should be:
root@localhost:/# uname -r 4.14.263-g8937e3694e43
Output:
root@localhost:/# dpkg --force-depends --install /var/cache/apt/archives/libc6_2.28-10_arm64.deb (Reading database ... 376 files and directories currently installed.) Preparing to unpack .../libc6_2.28-10_arm64.deb ... debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/aarch64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/aarch64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) debconf: falling back to frontend: Teletype ERROR: Your kernel version indicates a revision number of 255 or greater. Glibc has a number of built in assumptions that this revision number is less than 255. If you've built your own kernel, please make sure that any custom version numbers are appended to the upstream kernel number with a dash or some other delimiter. dpkg: error processing archive /var/cache/apt/archives/libc6_2.28-10_arm64.deb (--install): new libc6:arm64 package pre-installation script subprocess returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/libc6_2.28-10_arm64.deb
root@localhost:/# uname -r 4.14.263
-g8937e3694e43
Your kernel reversion is 263,however glibc require kernel reversion <255 ,witch means you need to manipulate kernel reversion <255, or configure kernel reversion <255 and complie your own kernel.
I read that, I'm unable to manipulate the kernel on my device. Maybe the install scripts need to support newer distributions
It's glibc's restriction,if you have magisk or xposed,maby there is plugin can do that
This restriction seems to be removed in newer releases of glibc.
I am also facing this problem. My kernel
Linux version 4.14.270-sigmaKernel-v1.0 (nobody@android-build) (Android (8148192, based on r445002) clang version 14.0.2 (https://android.googlesource.com/toolchain/llvm-project ae8d7d1dee3175cbfe3887834135abee1dcfcb68), LLD 14.0.2) #1 SMP PREEMPT Wed Mar 9 01:35:30 IST 2022
This restriction seems to be removed in newer releases of glibc.
So Linux deploy works now?
This restriction seems to be removed in newer releases of glibc.
But online install source may not have newer version of glibc. You can try using rootfs installation.