installing CUDA 9.0 with cs:~containers/kubernetes-worker

Giuseppe Attardi giuseppe.attardi at
Sat Feb 3 17:54:35 UTC 2018

Deploying charm  cs:~containers/kubernetes-worker #90 on a machine with GPU and configured with cuda-version=9.0.176-1
(required to run TensorFlow version 1.5), the command:

/var/lib/juju/agents/unit-kubernetes-worker-gpu-4/charm/reactive/ --invoke install_cuda

fails, apparently since the GPG key is missing, as it shows issuing the failing step by hand:

sudo dpkg -i /tmp/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb 
(Reading database ... 72620 files and directories currently installed.)
Preparing to unpack .../cuda-repo-ubuntu1604_9.0.176-1_amd64.deb ...
Unpacking cuda-repo-ubuntu1604 (9.0.176-1) over (9.0.176-1) ...
Setting up cuda-repo-ubuntu1604 (9.0.176-1) ...

The public CUDA GPG key does not appear to be installed.
To install the key, run this command:
sudo apt-key adv --fetch-keys <>

Indeed the installation instructions at <>

Installation Instructions:
	• `sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb`
	• `sudo apt-key adv --fetch-keys` <>
	• `sudo apt-get update`
	• `sudo apt-get install cuda`

The fix to the script should be to add:

	apt-key adv --fetch-keys $ROOT_URL/$UBUNTU_VERSION/x86_64/

One also needs to add --allow-unauthenticated to apt-get install.

See the enclosed patch.

— Beppe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Type: application/octet-stream
Size: 2710 bytes
Desc: not available
URL: <>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Juju mailing list