I'm running on Ubuntu 20.04.
$ sudo apt upgrade
It shows the following error:
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?
But I can ping 185.199.108.153 well.
When I run $sudo apt update, it shows the following error:
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.
When I run the following:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 23F3D4EA75716059
It shows the following:
Executing: /tmp/apt-key-gpghome.m9dSx1oUbg/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 23F3D4EA75716059
gpg: key 23F3D4EA75716059: "GitHub CLI <opensource+cli@github.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
Then I run $sudo apt-get update, the same result comes out.
What should I do to work around it?