$ apt install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libandroid-support libiconv pcre2
The following NEW packages will be installed:
git libiconv pcre2
The following packages will be upgraded:
libandroid-support
1 upgraded, 3 newly installed, 0 to remove and 20 not upgraded.
Need to get 0 B/3804 kB of archives. After this operation, 19.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y CANNOT LINK EXECUTABLE "dpkg-deb": library "liblzma.so.5" not found
dpkg: error processing archive /data/data/com.termux/files/usr/var/cache/apt/archives/libandroid-support_24-6_aarch64.deb (--unpack): dpkg-deb --control subprocess was killed by signal (Aborted)
Errors were encountered while processing: /data/data/com.termux/files/usr/var/cache/apt/archives/libandroid-support_24-6_aarch64.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
答案1
我终于解决了这个问题
我必须得跑;
find ../ -name "liblzma.so*"
我发现 ../usr/lib/liblzma.so 中有一个 liblzma.so,我像这样复制了它
cp ../usr/lib/liblzma.so ../usr/lib/liblzma.so.5
然后使用 apt 安装 liblzma,以确保它不会导致将来出现问题。
它现在可以正常工作了!
如果您需要 liblzma.so,我已将其上传到此处:https://cagriari.com/liblzma.so
注意:抱歉,格式不对,我是通过手机写这篇文章的
答案2
不确定这是否有用,但我卸载并重新安装了 termux,似乎解决了这个问题。当我尝试升级/安装几乎所有东西时,我总是收到这个错误。