root@hinas:~# hinas-clear docker
[ warn ] ... [ removing portainer ]
[ o.k. ] portainer not installed
[ warn ] ... [ removing casaos ]
[ o.k. ] casaos not installed
[ warn ] ... [ removing homeassistant ]
[ o.k. ] homeassistant not installed
[ warn ] ... [ removing jellyfin ]
[ o.k. ] jellyfin not installed
[ warn ] ... [ removing qinglong ]
[ o.k. ] qinglong not installed
[ warn ] ... [ removing teslamate ]
[ o.k. ] teslamate not installed
[ warn ] ... [ removing docker ]
[ o.k. ] docker not installed
root@hinas:~# install-docker.sh
[ o.k. ] ... [ 已检测 ]
[ o.k. ] ... [ 在线安装 docker 请耐心等待完成。 ]
- DOWNLOAD_URL=https://mirrors.ustc.edu.cn/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://mirrors.ustc.edu.cn/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'
- sh -c 'install -m 0755 -d /etc/apt/keyrings'
- sh -c 'curl -fsSL "https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg'
curl: (22) The requested URL returned error: 404
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://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu focal stable" > /etc/apt/sources.list.d/docker.list'
- sh -c 'apt-get update -qq >/dev/null'
W: GPG error: https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository 'https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu focal InRelease' is not signed.
- sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin >/dev/null'
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'
E: Unable to locate package docker-compose-plugin
- 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. ] 程序终止
root@hinas:~#