试图使用apt包管理器更新GitHub CLI失败,出现以下错误:
Failed to fetch https://cli.github.com/packages/dists/stable/InRelease: The following signatures couldn't be verified because the public key is not available: EXPKEYSIG C99B11DEB97541F0
GPG error: The following signatures were invalid: EXPKEYSIG C99B11DEB97541F0
发布于 2022-09-05 03:31:52
您会看到此错误,因为此证书(https://github.com/vilmibm)的颁发者允许它过期。他们已经明示,这可能不会很快解决,或根本不。你的选择是:
sudo apt install gh --allow-unauthenticated
安装包(请注意,从安全的角度来看,这不是一个好主意)sudo apt-key del C99B11DEB97541F0 && sudo rm /etc/apt/sources.list.d/github-cli.list
上看到错误。更新2022-09-07:
现在已为此包颁发了新的证书。根据下面FourDollars和Adam的回答,您可以通过遵循这些指示来修复/更新。
https://stackoverflow.com/questions/73600286
复制相似问题