Skip to content

Commit 35deba9

Browse files
committed
Update instructions with new apt key.
See https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/ for details.
1 parent 9b3d081 commit 35deba9

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

site/en/install/gpu.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,14 @@ This section shows how to install CUDA® 11 (TensorFlow >= 2.4.0) on Ubuntu
9393
Caution: [Secure Boot](https://wiki.ubuntu.com/UEFI/SecureBoot){:.external}
9494
complicates installation of the NVIDIA driver and is beyond the scope of these instructions.
9595

96-
97-
#### Ubuntu 18.04 (CUDA 11.0)
96+
#### Ubuntu 18.04 (CUDA 11.2)
9897

9998
<pre class="prettyprint lang-bsh">
10099
# Add NVIDIA package repositories
101-
<code class="devsite-terminal">wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin</code>
102-
<code class="devsite-terminal">sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600</code>
103-
<code class="devsite-terminal">sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub</code>
104-
<code class="devsite-terminal">sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"</code>
100+
# Note: For Ubuntu version other than 18.04 or CPU arch other than x86,
101+
# replace 'ubuntu1804' and/or 'x86_64' as needed in the following URL.
102+
<code class="devsite-terminal">wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb</code>
103+
<code class="devsite-terminal">sudo dpkg -i cuda-keyring_1.0-1_all.deb</code>
105104
<code class="devsite-terminal">sudo apt-get update</code>
106105

107106
# Install development and runtime libraries (~4GB)
@@ -114,19 +113,18 @@ complicates installation of the NVIDIA driver and is beyond the scope of these i
114113
libnvinfer-plugin8=8.2.4-1+cuda11.4 \
115114
libnvinfer-plugin-dev=8.2.4-1+cuda11.4
116115
</code>
116+
117117
# Reboot. Check that GPUs are visible using the command: nvidia-smi
118118
</pre>
119119

120-
#### Ubuntu 16.04 (CUDA 11.0)
120+
#### Ubuntu 16.04 (CUDA 11.2)
121121

122122
<pre class="prettyprint lang-bsh">
123123
# Add NVIDIA package repositories
124-
# Add HTTPS support for apt-key
125-
<code class="devsite-terminal">sudo apt-get install gnupg-curl</code>
126-
<code class="devsite-terminal">wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-ubuntu1604.pin</code>
127-
<code class="devsite-terminal">sudo mv cuda-ubuntu1604.pin /etc/apt/preferences.d/cuda-repository-pin-600</code>
128-
<code class="devsite-terminal">sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub</code>
129-
<code class="devsite-terminal">sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/ /"</code>
124+
<code class="devsite-terminal">sudo apt-get update</code>
125+
<code class="devsite-terminal">sudo apt-get install -y <apt-transport-https/code>
126+
<code class="devsite-terminal">wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-keyring_1.0-1_all.deb</code>
127+
<code class="devsite-terminal">sudo dpkg -i cuda-keyring_1.0-1_all.deb</code>
130128
<code class="devsite-terminal">sudo apt-get update</code>
131129

132130
# Install development and runtime libraries (~4GB)

0 commit comments

Comments
 (0)