Tar encountered error: "Error exit delayed from previous errors" several problems

  
                  

Possible problems

Use the tar command (tar -cvfz src.tar.gz src) to compress a directory,


encountered an error " Error exit delayed from previous errors"


Reason option "f" means The archive file name is given on the command

line (required whenever the tar output is Going to a file),


The name of the compressed file needs to be followed by f.


So after changing the tar command from "tar -cvfz src.tar.gz src" to "tar -czvf src.tar.gz src",

Possible problems #2>

After searching Google, there may be two cases of this problem:

12 There may be files in the package directory that do not have read (r) permissions. The directories that may be in the package directory do not have execute (x) permissions.

Locate the files or directories with the permissions and use the chmod command below to change their permissions:

12345 #Change file permissions chmod u+r file # Change directory permissions chmod-R u+xr dir

After the permissions are set, using the tar command to package compression will not have tar: Error exit delayed from previous errors.

Question 3,

Sometimes the tar function may cause an error message due to the ftp upload problem.

The ftp transmission method is binary:

12345 ftp 192.168.0.1# Omit login password and …# ftp command mode,

Set transfer mode to binftp> binftp> put ~/xxx.tar.gz yyy.tar.gz

Ok, about Error exit delayed from previous errors. Basically, you can refer to these.

Copyright © Windows knowledge All Rights Reserved