我正在尝试更新我的存储库,我一直从docker得到一个错误,我不知道如何修复它。
错误:
Failed to fetch https://download.docker.com/linux/ubuntu/dists/focal/InRelease
403 Forbidden [IP: 2600:9000:2251:e800:3:db06:4200:93a1 443]
E: The repository 'https://download.docker.com/linux/ubuntu focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
我假设我必须手动添加InRelease文件到docker,但我需要指导,因为我是全新的ubuntu。
在ubuntu上安装官方docker后是否添加了官方GPG密钥?
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
假设您在x86_64/amd64系统上,执行:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
我建议您遵循该指南,而不是通过apt安装。
嘿,我得到了同样的错误,并通过手动从dist中下载与我自己的安装相关的deb文件来修复,希望这有助于:在这里输入链接描述