TensorLayerX icon indicating copy to clipboard operation
TensorLayerX copied to clipboard

latest-gpu-py3 dockerfile build reports a line of errors [NO_PUBKEY]

Open qiutzh opened this issue 2 years ago • 3 comments

New Issue Checklist

Issue Description

在容器中使用tensorlayer,但在build latest-gpu-py3镜像时出现一行错误 执行过程和错误内容如下:

sudo docker build -f Dockerfile --build-arg TF_CONTAINER_VERSION="latest-gpu-py3" .

Sending build context to Docker daemon  13.31kB
Step 1/6 : ARG TF_CONTAINER_VERSION
Step 2/6 : FROM tensorflow/tensorflow:${TF_CONTAINER_VERSION}
 ---> e2a4af785bdb
Step 3/6 : LABEL version="1.0" maintainer="Jonathan DEKHTIAR <[email protected]>"
 ---> Using cache
 ---> dd0d507fcf29
Step 4/6 : ARG TL_VERSION
 ---> Using cache
 ---> f8ba110bef14
Step 5/6 : ARG TF_CONTAINER_VERSION
 ---> Using cache
 ---> d5b90af347f8
Step 6/6 : RUN echo "Container Tag: ${TF_CONTAINER_VERSION}"     && apt-get update     && case $TF_CONTAINER_VERSION in             latest-py3 | latest-gpu-py3) apt-get install -y python3-tk  ;;             *)                           apt-get install -y python-tk ;;         esac     && if [ -z "$TL_VERSION" ]; then         echo "Building a Nightly Release"         && apt-get install -y git         && mkdir /dist/ && cd /dist/         && git clone https://github.com/tensorlayer/tensorlayer.git         && cd tensorlayer         && pip install --disable-pip-version-check --no-cache-dir --upgrade -e .[all];     else         echo "Building Tag Release: $TL_VERSION"         && pip install  --disable-pip-version-check --no-cache-dir --upgrade tensorlayer[all]=="$TL_VERSION";     fi     && apt-get autoremove -y     && rm -rf /var/lib/apt/lists/*
 ---> Running in 73251fe2d227
Container Tag: latest-gpu-py3
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [22.8 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [957 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [29.8 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2286 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2798 kB]
Get:9 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InRelease [1581 B]
Err:9 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Ign:10 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  InRelease
Get:12 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  Release [564 B]
Get:13 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  Release.gpg [833 B]
Get:14 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  Packages [73.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [991 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1512 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3231 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [12.9 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [12.2 kB]
Reading package lists...
W: GPG error: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease' is no longer signed.
The command '/bin/bash -c echo "Container Tag: ${TF_CONTAINER_VERSION}"     && apt-get update     && case $TF_CONTAINER_VERSION in             latest-py3 | latest-gpu-py3) apt-get install -y python3-tk  ;;             *)                           apt-get install -y python-tk ;;         esac     && if [ -z "$TL_VERSION" ]; then         echo "Building a Nightly Release"         && apt-get install -y git         && mkdir /dist/ && cd /dist/         && git clone https://github.com/tensorlayer/tensorlayer.git         && cd tensorlayer         && pip install --disable-pip-version-check --no-cache-dir --upgrade -e .[all];     else         echo "Building Tag Release: $TL_VERSION"         && pip install  --disable-pip-version-check --no-cache-dir --upgrade tensorlayer[all]=="$TL_VERSION";     fi     && apt-get autoremove -y     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

自己在下面链接中找到一些提示,想问下是要修改Dockfile文件吗?改哪里呢?感谢大佬! 更新 CUDA Linux GPG 存储库密钥

Reproducible Code

  • OS:Ubuntu20.04
  • Docker: 20.10.16
  • no added code

qiutzh avatar Jun 01 '22 08:06 qiutzh

@qiutzh Thanks for the heads up, this docker is out of date and we will be providing a new docker.You can configure the environment by following the installation guide

Laicheng0830 avatar Jun 01 '22 10:06 Laicheng0830

@qiutzh docker pull xiaolong0612/tlxzoo:0.0.1 Try this one

QuantumLiu avatar Jun 03 '22 04:06 QuantumLiu

@QuantumLiu Thanks~

qiutzh avatar Jun 07 '22 07:06 qiutzh