如何從 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?

相關內容