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'
- pkgs='docker-ce docker-ce-cli containerd.io docker-compose-plugin'
- command -v gpg
- sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https 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'
- sh -c 'chmod a+r /etc/apt/keyrings/docker.gpg'
- sh -c 'echo "deb [arch=armhf signed-by=/etc/apt/keyrings/docker.gpg] https://repo.huaweicloud.com/docker-ce/linux/ubuntu focal stable" > /etc/apt/sources.list.d/docker.list'
- sh -c 'apt-get update -qq >/dev/null'
- sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io 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 ]
docker.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
[ 错误 ] docker 安装失败 [ err ]
[ o.k. ] 程序终止
root@hi3798mv100:~#