termux app遇到签名问题的解决方法

文章描述了在Termux中使用pkg工具时遇到的签名验证错误,提出了解决方案,包括使用curl直接从Termux官方源下载包并手动安装,以绕过问题。

具体就是运行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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值