I tried to install .tar.gz files in my computer through command line with the
tar -xzf archive.tar.gz
and it gives me this error
tar (child): archive.tar.gz: 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
How to resolve it
Are you able to view the contents of the file ? Since this file ends up with extension .gz. you can try unzipping (gunzip) it first.
To view the contents of the file
gunzip -l archive.tar.gz
Now try to unzip the file as well
Above command should give you a "TAR ARCHIVE" in a result. See if it extracts the tar archive and now you can try extracting the tar package.
tar -xvf archive.tar
"v" flag will verbosely print the output and will show the error message during archive process, if there is one.