update-nvidia-cudnn command not found

In this troubleshooting guide we learn how to fix update-nvidia-cudnn command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

update-nvidia-cudnn: command not found

or when using sudo you get the following error message

sudo: update-nvidia-cudnn: command not found

Solutions to update-nvidia-cudnn: command not found

How To Fix update-nvidia-cudnn: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu update-nvidia-cudnn is provided by nvidia-cudnn package.

nvidia-cudnn is:

The NVIDIA CUDA Deep Neural Network library (cuDNN) is a GPU-accelerated library of primitives for deep neural networks. cuDNN provides highly tuned implementations for standard routines such as forward and backward convolution, pooling, normalization, and activation layers. cuDNN is part of the NVIDIA Deep Learning SDK.

This package only contains the script “/usr/sbin/update-nvidia-cudnn” to download and install Nvidia cuDNN locally. It will be automatically invoked during installation.

To fix this problem, we can install more using the command below.

sudo apt-get -y install nvidia-cudnn

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install nvidia-cudnn.

sudo apt -y install nvidia-cudnn

Or if you have aptitude installed you can use the following command.

sudo aptitude install nvidia-cudnn

Summary

In this tutorial we learn how to fix update-nvidia-cudnn command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.