执行 sudo apt-get install apt-transport-https 失败

root@DESKTOP-7EA9N91:/etc/apt/sources.list.d# sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting ‘apt’ instead of ‘apt-transport-https’
Package gnupg2 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 ‘gnupg2’ has no installation candidate

执行失败,已将gnupg2替换为gnupg安装成功,咨询一下是否有影响?没有影响建议更新社区文档。

你使用的是方式一 【通过华为云开源镜像站进行安装】, 请将Ubuntu源改为mirrors.huaweicloud,再重试。

或者
使用

方式二:通过Docker官方镜像站进行安装 ​

当然您可以根据需求选用Docker官方的镜像进行安装。详情请参考Docker官网进行安装Ubuntu | Docker Docs