Cudnn

I am experiencing difficulty extracting the cudnn file, and I encountered the following error.:

tar -xvf cudnn-linux-x86_64-8.6.0.163_cuda11-archive.tar.xz

tar: cudnn-linux-x86_64-8.6.0.163_cuda11-archive.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

any idea how to fix this ?

It’s been compressed with xz, so you need to use -xvfJ to extract it.

try it before but does nt work

tar: j: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

Try J not j.

its the same

tar: J: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

how can i be sure im at right directory

I just downloaded the same file and it extracts fine:

 tar xvfJ cudnn-linux-x86_64-8.6.0.163_cuda11-archive.tar.xz 
cudnn-linux-x86_64-8.6.0.163_cuda11-archive/
cudnn-linux-x86_64-8.6.0.163_cuda11-archive/lib/
....

So not sure what is causing your trouble.

now im getting this :
tar xvfJ cudnn-linux-x86_64-8.6.0.163_cuda11-archive.tar.xz

tar (child): cudnn-linux-x86_64-8.6.0.163_cuda11-archive.tar.xz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

Do you have the “xz” package installed?

i have this :
sudo apt-get install zlib1g

That is the zlib package. I have no experience with Debian based distros, but after a quick search, try:
sudo apt-get install xz-utils

thanks a lot , but still doesnt work and same error