termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
12.94k stars 2.98k forks source link

[Bug]: CANNOT LINK EXECUTABLE "apt": library "liblz4.so.1" not found: needed by /data/data/com.termux/files/usr/lib/libapt-pkg.so in namespace (default) #20944

Closed Eythan-ship-it closed 1 month ago

Eythan-ship-it commented 1 month ago

Problem description

Sometimes when I try to upgrade the package or install git/python2/pip It says that

What steps will reproduce the bug?

Pkg install git Pkg install python2

What is the expected behavior?

Idk

System information

Termux Variables:
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_AM_SOCKET_SERVER_ENABLED=true
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PACKAGE_VARIANT=apt-android-7
TERMUX_APP_PID=30695
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_VERSION=0.119.1
TERMUX__USER_ID=0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://mirror.mwt.me/termux/main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.43.1
Android version:
14
Kernel build information:
Linux localhost 4.19.191-28701252-abA137FXXU5EXE3 #1 SMP PREEMPT Wed May 29 10:41:40 +07 2024 armv8l Android
Device manufacturer:
samsung
Device model:
SM-A137F
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Biswa96 commented 1 month ago

liblz4.so.1 file is not provided by any package. libapt-pkg.so depends on liblz4.so.

$ readelf -d $PREFIX/lib/libapt-pkg.so | grep lz4
  0x0000000000000001 (NEEDED)       Shared library: [liblz4.so]