root@hi3798mv100:~# install-docker.sh
[ o.k. ] ... [ 已检测 ]
[ o.k. ] ... [ 在线安装 docker 请耐心等待完成。 ]
- DOWNLOAD_URL=https://repo.huaweicloud.com/docker-ce
- pre_reqs='apt-transport-https ca-certificates curl software-properties-common'
++ dpkg --print-architecture
++ lsb_release -cs
- apt_repo='deb [arch=armhf signed-by=/etc/apt/keyrings/docker.gpg] https://repo .huaweicloud.com/docker-ce/linux/ubuntu focal stable'
- docker_version=5:27.5.1-1ubuntu.20.04focal
- pkgs='docker-ce=5:27.5.1-1ubuntu.20.04focal docker-ce-cli=5:27.5.1-1ubuntu. 20.04focal containerd.io=1.7.22-1 docker-compose-plugin'
- command -v gpg
- sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-htt ps ca-certificates curl software-properties-common >/dev/null'
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
- sh -c 'install -m 0755 -d /etc/apt/keyrings'
- sh -c 'curl -fsSL "https://repo.huaweicloud.com/docker-ce/linux/ubuntu/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg'
curl: (22) The requested URL returned error: 404 Not Found
gpg: no valid OpenPGP data found.
- sh -c 'chmod a+r /etc/apt/keyrings/docker.gpg'
- sh -c 'echo "deb [arch=armhf signed-by=/etc/apt/keyrings/docker.gpg] https://r epo.huaweicloud.com/docker-ce/linux/ubuntu focal stable" > /etc/apt/sources.list .d/docker.list'
- sh -c 'apt-get update -qq >/dev/null'
E: The repository 'https://repo.huaweicloud.com/docker-ce/linux/ubuntu focal Rel ease' does not have a Release file.
- sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce=5:27.5. 1-1ubuntu.20.04focal docker-ce-cli=5:27.5.1-1ubuntu.20.04focal containerd.io =1.7.22-1 docker-compose-plugin >/dev/null'
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
- set +x
[ o.k. ] ... [ 启动 docker ]
Failed to enable unit: Unit file docker.service does not exist.
Failed to start docker.service: Unit docker.service not found.
[ 错误 ] docker 安装失败 [ err ]
[ o.k. ] 程序终止