具体就是运行pkg工具的时候,报错
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: xxx: Sub-process apt-key exited unexpectedly
W: GPG error: xxx: Sub-process apt-key exited unexpectedly
E: The repository 'xxx' is not signed.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible causes: unstable or tampered Internet connection, wrong sources.list, outdated keyring or host is down currently.
N: Please note that all hosting problems or other serious issues we announce on our social media pages.
N: Use termux-change-repo for switching to a mirror.
参考github上面的issues,运行这句命令就可以解决。
(deb="coreutils_9.3_$(dpkg --print-architecture).deb"
curl -LO "https://packages-cf.termux.dev/apt/termux-main/pool/main/c/coreutils/$deb"
dpkg -i "$deb"
rm -v "$deb")
附原文链接
https://github.com/termux/termux-packages/issues/15706