Tar Error [cannot be opened: not directory]

I made some tar gnome GUI archive on Ubuntu, but when I try to extract them

tar zxvf archive_name

      

I am getting the following error

Cannot open: Not a directory

      

What is the problem?

+2


a source to share


3 answers


Try to extract the archive to an empty directory; any existing files / directories in the extraction target will usually cause problems if the names overlap.



+2


a source


I faced the same problem (for every file in the archive) and I solved it by adding ".tar.gz" to the archive file name, as I was able to download the PECL package without the file extension:

mv pecl_http pecl_http.tar.gz

      



Then I was able to issue the following command to extract the contents of the archive:

tar -xzf pecl_http.tar.gz

      

0


a source


Try using instead tar -zxvf archive_name

. I believe the command format has changed and it now requires z (unzip) x (extract) v (verbose) f (filename ...) as switches instead of plain text. The error comes from tar trying to do something with the zxvf file, which of course doesn't exist.

0


a source







All Articles