统信uos“校验失败”需逐层修复信任链:先替换失效应用商店源地址,再导入uniontech-archive-keyring.gpg公钥并显式声明签名路径,最后清空apt缓存并执行apt update重建认证态。

统信UOS系统在执行sudo apt update或打开应用商店时弹出“校验失败”提示,本质是APT拒绝加载来源不可信的仓库元数据,常见于Release文件签名无法验证、公钥缺失或密钥环配置错误,必须逐层修复信任链断点。
检查并替换失效的应用商店源地址
应用商店专属源(如appstore.list)若指向已下线域名,APT会直接跳过该源并静默报错“校验失败”,导致商店白屏或无法刷新应用列表。
1、终端执行:sudo cat /etc/apt/sources.list.d/appstore.list,确认是否存在pro-store-packages.uniontech.com等已停用地址。
2、若存在,立即备份并覆盖为有效地址:sudo cp /etc/apt/sources.list.d/appstore.list /etc/apt/sources.list.d/appstore.list.bak && echo "deb https://com-store-packages.uniontech.com/appstore deepin appstore" | sudo tee /etc/apt/sources.list.d/appstore.list。
3、执行sudo apt update,观察输出中是否仍有NO_PUBKEY或INVALIDSIG报错——若仍有,说明公钥未就位,需进入下一步。
导入缺失的官方GPG公钥至密钥环
UOS v20+弃用全局/etc/apt/trusted.gpg,必须将公钥存入/usr/share/keyrings/并显式声明引用路径,否则即使密钥存在也不会被校验流程加载。
方法一:自动获取UnionTech根证书
执行:sudo apt install -y uniontech-keyring,该包内置统信全系签名所需的uniontech-archive-keyring.gpg,安装后自动注册到密钥环。
方法二:手动导入离线公钥(适用于无网络环境)
1、从其他联网设备下载https://mirrors.tuna.tsinghua.edu.cn/uniontech/pool/main/u/uniontech-keyring/uniontech-keyring_2024.04.01_all.deb,拷贝至本机。
2、执行:sudo dpkg -i uniontech-keyring_2024.04.01_all.deb,安装后公钥将落至
/usr/share/keyrings/【uniontech-archive-keyring.gpg】。 <p>3、编辑<code>/etc/apt/sources.list.d/appstore.list</code></p>,在deb行开头补全签名引用:
deb [arch=amd64 signed-by=/usr/share/keyrings/uniontech-archive-keyring.gpg] https://com-store-packages.uniontech.com/appstore deepin appstore。
强制刷新APT元数据缓存与认证态
旧版Release文件缓存可能残留签名过期的哈希值,导致新公钥导入后仍校验失败;必须清除本地索引并重建信任上下文。
第一步:清空APT缓存目录
执行:sudo rm -rf /var/lib/apt/lists/*,这一步【不可跳过】,否则apt update会复用损坏的缓存继续报错。
第二步:重新生成可信索引
运行:sudo apt clean && sudo apt update,等待输出中出现Get:1 https://com-store-packages.uniontech.com/appstore deepin InRelease [2,156 B]及Reading package lists... Done,即表示校验链已贯通。
第三步:验证商店可用性
直接启动应用商店,或执行:apt policy | grep -A2 appstore,若返回结果含500 https://com-store-packages.uniontech.com/appstore且无error标记,说明问题已解决。











