docker build 报错 The following signatures were invalid

构建镜像的时候遇到 GPG error: https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release: The following signatures were invalid: BADSIG F60F4B3D7 FA2AF80 cudatools <cudatools@nvidia.com> 报错。查了发现是网络环境问题。建议是换个时间再build一次。

参考: Problem with repositories for Ubuntu 16.04NVIDIA/DIGITS:Building DIGITS

完整的日志如下:

$ sh build-docker.sh 
Sending build context to Docker daemon  7.168kB
Step 1/18 : FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
 ---> 99ca196a2e91
Step 2/18 : WORKDIR /tmp
Removing intermediate container 19eaffa9e050
 ---> 983ba55e3cea
Step 3/18 : RUN apt-get update && apt-get install -y   python   python-pip   sox   libsox-dev   libsox-fmt-all   git   cmake   tree   htop   bmon   iotop   tmux   vim
   apt-utils ---> Running in 23664e3c0629
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Ign:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  InRelease
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [95.4 kB]
Ign:6 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  InRelease
Get:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [718 kB]
Get:10 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release [564 B]
Get:11 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Release [564 B]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [491 kB]
Get:14 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release.gpg [819 B]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3747 B]
Get:16 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Release.gpg [801 B]
Ign:16 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Release.gpg
Get:17 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Packages [156 kB]
Get:18 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Packages [30.8 kB]
Ign:18 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Packages
Err:18 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Packages
  Writing more data than expected (31941 > 30835)
Get:19 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [280 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1107 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [888 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [18.8 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7965 B]
Get:29 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8532 B]
Fetched 25.7 MB in 36s (697 kB/s)
Reading package lists...
W: GPG error: https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Release: The following signatures were invalid: BADSIG F60F4B3D7
FA2AF80 cudatools <cudatools@nvidia.com>
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值