docker安装在Ubuntu 20.04 LTS(Vmware)上失败

问题描述 投票:0回答:1

我正在在VMware的Ubuntu VM中使用https://docs.docker.com/engine/install/ubuntu/在Ubuntu 20.04上进行Docker安装。

但是运行命令将存储库添加到Ubuntu时。

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

我遇到错误

Get:1 http://us.archive.ubuntu.com/ubuntu focal InRelease [265 kB]                                                                           
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                 
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                                                                                   
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                             
Ign:6 https://download.docker.com/linux/ubuntu focal InRelease                                             
Err:7 https://download.docker.com/linux/ubuntu focal Release
  404  Not Found [IP: 13.225.7.126 443]
Get:8 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [89.1 kB]
Hit:9 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu focal Release' does not have a Release file.
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.

运行命令时

sudo apt-get install docker-ce docker-ce-cli containerd.io

我收到错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-ce' has no installation candidate
E: Unable to locate package docker-ce-cli
E: Unable to locate package containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Couldn't find any package by regex 'containerd.io'

这是什么原因?我是Docker的新手。有没有解决方法,还是应该使用源代码或其他东西安装docker?谢谢。

docker ubuntu vmware ubuntu-20.04
1个回答
0
投票

根据https://docs.docker.com/engine/install/ubuntu/上的信息,目前不支持Ubuntu 20.04。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.