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 ?
rs277
November 29, 2023, 11:22pm
2
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
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
rs277
November 29, 2023, 11:34pm
6
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
rs277
November 30, 2023, 12:09am
8
Do you have the “xz” package installed?
i have this :
sudo apt-get install zlib1g
rs277
November 30, 2023, 12:19am
10
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