如何通过 apt-get update 取消未完成的安装

如何通过 apt-get update 取消未完成的安装

我尝试在我的 ubuntu 上安装 docker,但由于服务器位置,我无法安装它(403 错误)。现在,当我使用“apt-get update”命令安装其他东西时,它会抛出此错误:

Err:5 https://download.docker.com/linux/ubuntu bionic InRelease                                        
  403  Forbidden [IP: 143.204.214.54 443]
E: Failed to fetch https://download.docker.com/linux/ubuntu/dists/bionic/InRelease  403  Forbidden [IP: 143.204.214.54 443]
E: The repository 'https://download.docker.com/linux/ubuntu bionic 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.

我如何取消安装docker?

相关内容