Solvednvidia docker CUDA / Docker & GPG error

1. Issue or feature description:

Installation of cuda inside docker (ubuntu 16) fails. From the docker build log:

Hit:1 xenial-security InRelease
Ign:2  InRelease
Hit:3 xenial InRelease
Ign:4  InRelease
Hit:5 xenial-updates InRelease
Get:6  Release [564 B]
Hit:7  Release
Hit:8 xenial-backports InRelease
Get:9  Release.gpg [801 B]
Ign:9  Release.gpg
Hit:11  Packages
Err:11  Packages
  Hash Sum mismatch
Fetched 1365 B in 0s (2658 B/s)
Reading package lists...
[91mW: GPG error:  Release: The following signatures were invalid: BADSIG F60F4B3D7FA2AF80 cudatools <>
W: The repository '  Release' is not signed.
E: Failed to fetch store:/var/lib/apt/lists/partial/  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.

2. Steps to reproduce the issue


17 Answers

✔️Accepted Answer

I don't know when it will be fixed.

This is a potential workaround:

FROM nvidia/cuda:8.0-cudnn6-devel-ubuntu16.04

RUN rm /etc/apt/sources.list.d/cuda.list

Other Answers:

Here is my solution
in your Dockerfile add this line RUN apt-key adv --fetch-keys before apt-get update

More Issues: