通过ssh连接机顶盒后,实用 install-portainer.sh进行安装docker失败,提示如下:
install-portainer.sh
[ o.k. ] ... [ 正在下载配置,请耐心等待完成。 ]
E: The repository 'https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu focal Rele ase' does not have a Release file.
E: Release file for http://repo.huaweicloud.com/ubuntu-ports/dists/focal-updates /InRelease is not valid yet (invalid for another 172d 7h 10min 42s). Updates for this repository will not be applied.
E: Release file for http://repo.huaweicloud.com/ubuntu-ports/dists/focal-backpor ts/InRelease is not valid yet (invalid for another 172d 7h 12min 36s). Updates f or this repository will not be applied.
E: Release file for http://repo.huaweicloud.com/ubuntu-ports/dists/focal-securit y/InRelease is not valid yet (invalid for another 172d 7h 9min 4s). Updates for this repository will not be applied.
E: Unable to correct problems, you have held broken packages.
[ o.k. ] ... [ 在线安装 docker 请耐心等待完成。 ]
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
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'
E: The repository 'https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu focal Release' does not have a Release file.
E: Release file for http://repo.huaweicloud.com/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 172d 7h 10min 9s). Updates for this repository will not be applied.
E: Release file for http://repo.huaweicloud.com/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 172d 7h 12min 4s). Updates for this repository will not be applied.
E: Release file for http://repo.huaweicloud.com/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 172d 7h 8min 31s). Updates for this repository will not be applied.
- 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-portainer.sh: line 17: docker: command not found
/usr/bin/install-portainer.sh: line 28: docker: command not found
容器管理工具已经安装,浏览器打开 http://192.168.8.10:9000 进入设置
如有疑问,请访问 https://bbs.histb.com 获得相关教程