sudo apt update 错误:404 未找到

sudo apt update 错误:404 未找到

我在 Ubuntu 20.04 上运行。

$ sudo apt upgrade

显示以下错误:

Err:2 https://cli.github.com/packages stable/main amd64 gh amd64 2.14.7
  404  Not Found [IP: 185.199.108.153 443]
E: Failed to fetch https://cli.github.com/packages/pool/main/g/gh/gh_2.14.7_amd64.deb  404  Not Found [IP: 185.199.108.153 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

但是我可以 ping 185.199.108.153。当我运行 $sudo apt update 时,它​​显示以下错误:

Err:4 https://cli.github.com/packages stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli.github.com/packages stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23F3D4EA75716059
W: 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: NO_PUBKEY 23F3D4EA75716059
W: Some index files failed to download. They have been ignored, or old ones used instead.

当我运行以下命令时:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 23F3D4EA75716059

它显示以下内容:

Executing: /tmp/apt-key-gpghome.m9dSx1oUbg/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 23F3D4EA75716059
gpg: key 23F3D4EA75716059: "GitHub CLI <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

然后我运行 $sudo apt-get update,结果是一样的。

我应该怎样做才能解决这个问题?

答案1

相关内容