# Install cuDNN from deb

**URL:** <https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616>\
**Category:** cuDNN\
**Created:** [August 16, 2017, 6:17am UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616 "2017-08-16T06:17:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaLiShI](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@DaLiShI](https://forums.developer.nvidia.com/u/DaLiShI)\
**Post date:** [August 16, 2017, 6:17am UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/1 "2017-08-16T06:17:52Z")

</div>

Hi previous I use the tarball to install cuDNN by copying the files to respective locations.

Now I m trying to install the run-time lib using a .deb (cuDNN7 on Ubuntu16.04)

$ sudo dpkg -i libcudnn7\_7.0.1.13-1+cuda8.0\_amd64.deb

This command (from the installation guide) only seems not enough. I still cannot find files like cudnn.h and also I cannot install the docs and samples as it complained cudnn-dev is not installed. Then I downloaded the developer version and run:

$ sudo dpkg -i libcudnn7-dev\_7.0.1.13-1+cuda8.0\_amd64.deb

but it complains again

libcudnn7-dev depends on libcudnn7 (= 7.0.1.13-1+cuda8.0); however:  
Package libcudnn7 is not installed.

---

<div class="post-metadata">

**Author:** ![hnkulkarni](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hnkulkarni](https://forums.developer.nvidia.com/u/hnkulkarni)\
**Post date:** [September 19, 2017, 1:53pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/2 "2017-09-19T13:53:08Z")

</div>

I have the same problem. I installed Cuda 9, from the developer site on Ubuntu 17.04. When I try to install cuDNN 7.0.2. Copying my error here.

ubuntu@:~/downloads$ sudo dpkg -i libcudnn7-doc\_7.0.2.43-1+cuda9.0\_amd64.deb  
Selecting previously unselected package libcudnn7-doc.  
(Reading database … 183137 files and directories currently installed.)  
Preparing to unpack libcudnn7-doc\_7.0.2.43-1+cuda9.0\_amd64.deb …  
Unpacking libcudnn7-doc (7.0.2.43-1+cuda9.0) …  
dpkg: dependency problems prevent configuration of libcudnn7-doc:  
libcudnn7-doc depends on libcudnn7-dev; however:  
Package libcudnn7-dev is not installed.

dpkg: error processing package libcudnn7-doc (–install):  
dependency problems - leaving unconfigured  
Errors were encountered while processing:  
libcudnn7-doc

---

<div class="post-metadata">

**Author:** ![hnkulkarni](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hnkulkarni](https://forums.developer.nvidia.com/u/hnkulkarni)\
**Post date:** [September 19, 2017, 1:58pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/3 "2017-09-19T13:58:08Z")

</div>

Update:

I now installed cuDNN from the .dep package and it is working fine for me. Earlier, I was trying to install cuDNN from the tar files and then installing the samples and documents from the .deb files.

---

<div class="post-metadata">

**Author:** ![arpitagupta2915](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@arpitagupta2915](https://forums.developer.nvidia.com/u/arpitagupta2915)\
**Post date:** [October 1, 2017, 11:03am UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/4 "2017-10-01T11:03:47Z")

</div>

I am also facing same issue. Did anyone get its solution?

---

<div class="post-metadata">

**Author:** ![the.akita.ta](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/the.akita.ta/32/67327_2.png) [@the.akita.ta](https://forums.developer.nvidia.com/u/the.akita.ta)\
**Post date:** [November 1, 2017, 1:42pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/5 "2017-11-01T13:42:48Z")

</div>

[update]  
I have missing dependency, I should have installed “libcudnn7” runtime first.

having the same problem on Elementary Loki (ubuntu 16.04):

```auto
Preparing to unpack libcudnn7-dev_7.0.3.11-1+cuda9.0_amd64.deb ...
Unpacking libcudnn7-dev (7.0.3.11-1+cuda9.0) over (7.0.3.11-1+cuda9.0) ...
dpkg: dependency problems prevent configuration of libcudnn7-dev:
 libcudnn7-dev depends on libcudnn7 (= 7.0.3.11-1+cuda9.0); however:
  Package libcudnn7 is not installed.

dpkg: error processing package libcudnn7-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libcudnn7-dev

```

---

<div class="post-metadata">

**Author:** ![rongxiang1986](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rongxiang1986](https://forums.developer.nvidia.com/u/rongxiang1986)\
**Post date:** [November 15, 2017, 4:25pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/6 "2017-11-15T16:25:49Z")

</div>

I am also facing same issue.Installation Guide say “your CUDA directory path is referred to as /usr/local/cuda/”.but cuda9.0 path is /usr/local/cuda-9.0/.

try download cuDNN v7.0 Library for Linux

---

<div class="post-metadata">

**Author:** ![salstouhi](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@salstouhi](https://forums.developer.nvidia.com/u/salstouhi)\
**Post date:** [November 22, 2017, 4:48pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/7 "2017-11-22T16:48:58Z")

</div>

same here

---

<div class="post-metadata">

**Author:** ![salstouhi](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@salstouhi](https://forums.developer.nvidia.com/u/salstouhi)\
**Post date:** [November 22, 2017, 4:52pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/8 "2017-11-22T16:52:59Z")

</div>

my solution was to “Install cuDNN v7.0.4 Runtime Library for Ubuntu16.04” before installing “cuDNN v7.0.4 Developer Library for Ubuntu16.04 (Deb)”

---

<div class="post-metadata">

**Author:** ![Pratosha](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Pratosha](https://forums.developer.nvidia.com/u/Pratosha)\
**Post date:** [February 3, 2018, 6:27am UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/9 "2018-02-03T06:27:25Z")

</div>

Hi,

I am trying to install CUDNN v7.0.5 with CUDA 8.0 on Jetson TX2 from the link - [https://developer.nvidia.com/rdp/cudnn-download](https://developer.nvidia.com/rdp/cudnn-download)

when I run the command:$ sudo dpkg -i libcudnn7\_7.0.5.15-1+cuda8.0\_amd64.deb  
I am facing this error:  
dpkg: error processing archive libcudnn7\_7.0.5.15-1+cuda8.0\_amd64.deb (–install):  
package architecture (amd64) does not match system (arm64)  
Errors were encountered while processing:  
libcudnn7\_7.0.5.15-1+cuda8.0\_amd64.deb

Kindly help

---

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [February 4, 2018, 2:39pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/10 "2018-02-04T14:39:06Z")

</div>

From that link, use the cudnn library for linux (which is a .tgz file) to install CUDNN

[url][https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.0.5/prod/8.0\_20171129/cudnn-8.0-linux-x64-v7[/url]](https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.0.5/prod/8.0_20171129/cudnn-8.0-linux-x64-v7%5B/url%5D)

you won’t be able to install a amd64 deb on arm64 platform

Also, read the install guide

Also, note that the sample codes are a separte .tgz download

---

<div class="post-metadata">

**Author:** ![Pratosha](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Pratosha](https://forums.developer.nvidia.com/u/Pratosha)\
**Post date:** [February 5, 2018, 4:01am UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/11 "2018-02-05T04:01:56Z")

</div>

Yes thankyou txbob :)

---

<div class="post-metadata">

**Author:** ![Uchi](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Uchi](https://forums.developer.nvidia.com/u/Uchi)\
**Post date:** [February 9, 2018, 7:35am UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/12 "2018-02-09T07:35:54Z")

</div>

The sample files are also .deb and create the same dependency error. Where can I find the tgz samples?

---

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [February 10, 2018, 8:12pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/13 "2018-02-10T20:12:20Z")

</div>

the sample files are also contained in the

cuDNN vX.Y.Z Library for Linux

.tgz file

---

<div class="post-metadata">

**Author:** ![fvilca](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fvilca/32/56020_2.png) [@fvilca](https://forums.developer.nvidia.com/u/fvilca)\
**Post date:** [December 18, 2018, 9:32pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/14 "2018-12-18T21:32:19Z")

</div>

Hola:

antes de instalar:  
cuDNN v7.0.5 Runtime Library for Ubuntu16.04 (Deb)  
debes instalar:  
cuDNN v7.0.5 Developer Library for Ubuntu16.04 (Deb)

entonces ya no saldra ese error.

Hello:

before installing:  
CuDNN v7.0.5 Runtime Library for Ubuntu16.04 (Deb)  
you must install:  
CuDNN Development Library v7.0.5 for Ubuntu16.04 (Deb)

then that error will not come out.

Fil…

---

<div class="post-metadata">

**Author:** ![2936803717](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@2936803717](https://forums.developer.nvidia.com/u/2936803717)\
**Post date:** [December 19, 2018, 2:11pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/15 "2018-12-19T14:11:03Z")

</div>

hi  
I face the same problems  
and I want to install CuDNN Development Library directly.However, somthing going wrong like following:

dpkg: dependency problems prevent configuration of libcudnn7-doc:  
libcudnn7-doc depends on libcudnn7-dev; however:  
Package libcudnn7-dev is not installed.

and I get idea from the former buddy:fvilca that I download the CuDNN Runtime version and install it first. It successed. and then I installed the CuDNN Developer version and it also successed.

wow it was amazing.hope it will help you

---

<div class="post-metadata">

**Author:** ![jerrypan](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jerrypan/32/261897_2.png) [@jerrypan](https://forums.developer.nvidia.com/u/jerrypan)\
**Post date:** [August 1, 2019, 10:23am UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/16 "2019-08-01T10:23:26Z")

</div>

the sample files are also contained in the

cuDNN vX.Y.Z Library for Linux

.tgz file

can you please provide the link for samples and doc for cudnn-10.1-linux-x64-v7.6.2.24.tgz which contains the libraries and header files only.

The deb on ur website is only working for ubuntu 16.04 and below for package manager installation, not working for 18.04.(where installation is done by just copying the files).

Of course we can copy files from that deb. But it is not the proper way. Do you have link address like this one

[https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86\_64/](https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/)

where we can browse all the packages.

---

<div class="post-metadata">

**Author:** ![marjie\_yua](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@marjie\_yua](https://forums.developer.nvidia.com/u/marjie_yua)\
**Post date:** [October 17, 2019, 6:16pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/17 "2019-10-17T18:16:50Z")

</div>

I had the same problem but salstouhi’s suggestion worked for me. Thanks a lot!

> [@](#):
>
> my solution was to “Install cuDNN v7.0.4 Runtime Library for Ubuntu16.04” before installing “cuDNN v7.0.4 Developer Library for Ubuntu16.04 (Deb)”

---

<div class="post-metadata">

**Author:** ![wzhend](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@wzhend](https://forums.developer.nvidia.com/u/wzhend)\
**Post date:** [January 24, 2020, 9:58pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/18 "2020-01-24T21:58:21Z")

</div>

Please follow the install guide. The problem can be solved.

In the following sections:  
your CUDA directory path is referred to as /usr/local/cuda/  
your cuDNN download path is referred to as   
2.3.1. Installing From A Tar File  
Navigate to your directory containing the cuDNN Tar file.  
Unzip the cuDNN package.  
$ tar -xzvf cudnn-10.2-linux-x64-v7.6.5.32.tgz  
Copy the following files into the CUDA Toolkit directory, and change the file permissions.  
$ sudo cp cuda/include/cudnn.h /usr/local/cuda/include  
$ sudo cp cuda/lib64/libcudnn\* /usr/local/cuda/lib64  
$ sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn\*

---

<div class="post-metadata">

**Author:** ![bwana](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/bwana/32/9760_2.png) [@bwana](https://forums.developer.nvidia.com/u/bwana)\
**Post date:** [March 18, 2020, 5:52am UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/19 "2020-03-18T05:52:56Z")

</div>

I just installed cuda 10.2 successfully and compiled the samples. The few I tested work fine.  
I installed the runtime cudnn from the tar archive and copying them as above.  
In fact I checked the /cuda/include and the cuda/lib64 directories and found the files properly copied.

```
-rwxr-xr-x 1 root root 459633080 Mar 18 01:47 libcudnn.so*
-rwxr-xr-x 1 root root 459633080 Mar 18 01:47 libcudnn.so.7*
-rwxr-xr-x 1 root root 459633080 Mar 18 01:47 libcudnn.so.7.6.5*

```

I then went to install the dev files of cudnn with  
`sudo dpkg -i libcudnn7-dev_7.6.5.32-1+cuda10.2_amd64.deb`

but got this:  
(Reading database … 185816 files and directories currently installed.)  
Preparing to unpack libcudnn7-dev\_7.6.5.32-1+cuda10.2\_amd64.deb …  
Unpacking libcudnn7-dev (7.6.5.32-1+cuda10.2) over (7.6.5.32-1+cuda10.2) …  
dpkg: dependency problems prevent configuration of libcudnn7-dev:  
libcudnn7-dev depends on libcudnn7 (= 7.6.5.32-1+cuda10.2); however:  
Package libcudnn7 is not installed.

```
dpkg: error processing package libcudnn7-dev (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libcudnn7-dev

```

What?

[SOLVED]  
REBOOT! after installing the libs. now examples compile.

---

<div class="post-metadata">

**Author:** ![bryan.bo.cao](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@bryan.bo.cao](https://forums.developer.nvidia.com/u/bryan.bo.cao)\
**Post date:** [June 10, 2020, 4:55pm UTC](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616/20 "2020-06-10T16:55:20Z")

</div>

Thanks! It works for me.

[Next page](https://forums.developer.nvidia.com/t/install-cudnn-from-deb/52616.md?page=2)
