++ 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'
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 2427 (apt-get)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
- 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'
- 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'
E: The repository 'https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu focal Release' does not have a Release file.
- 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
/usr/bin/install-docker.sh: line 65: /etc/docker/daemon.json: No such file or directory
[ 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. ] 程序终止
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
perl
The following NEW packages will be installed:
lsof
0 upgraded, 1 newly installed, 0 to remove and 132 not upgraded.
Need to get 248 kB of archives.
After this operation, 424 kB of additional disk space will be used.
Get:1 http://repo.huaweicloud.com/ubuntu-ports focal-updates/main armhf lsof armhf 4.93.2+dfsg-1ubuntu0.20.04.1 [248 kB]
Fetched 248 kB in 0s (1,088 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package lsof.
(Reading database ... 25017 files and directories currently installed.)
Preparing to unpack .../lsof_4.93.2+dfsg-1ubuntu0.20.04.1_armhf.deb ...
Progress: [ 0%] [........................................................................................................]
Unpacking lsof (4.93.2+dfsg-1ubuntu0.20.04.1) ............................................................................]
Setting up lsof (4.93.2+dfsg-1ubuntu0.20.04.1) ...#########...............................................................]
Progress: [ 60%] [##############################################################..........................................]
docker-compose is to be install!
[ o.k. ] ... [ 正在检测 docker 环境配置,请耐心等待完成。 ]
E: The repository 'https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu focal Release' does not have a Release file.
debconf: delaying package configuration, since apt-utils is not installed
[ 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'
Extracting templates from packages: 100%
- 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'
- 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'
E: The repository 'https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu focal Release' does not have a Release file.
- 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. ] 程序终止
/usr/bin/install-teslamate1.sh: line 32: docker-compose: command not found