Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux FAQ - How to fix tar:Exitingwith failure status due to previous errors     - Linux_Logo - output color ANSI Linux distributions logo command-line tool (Linux)

- Linux system firewall defense network attacks (Linux)

- C # using the HttpClient Note: Preheat the long connection (Programming)

- The Java ThreadLocal (Programming)

- The REVERSE function of DB2 (Database)

- Ubuntu 14.04 Nvidia graphics driver installation and settings (Linux)

- Oracle database on the hit rate of query summary (Database)

- MySQL development common query summary (Database)

- Linux operating system ARP Spoofing Defense (Linux)

- Python class of operator overloading (Programming)

- Linux novice common commands (Linux)

- CentOS system dual network card IP information configuration (Linux)

- Adjust the size of the hard disk VirtualBox (Linux)

- Shell array: Define Shell array, the array length (Programming)

- Hibernate Performance Optimization of reusing SessionFactory (Programming)

- Linux Network Statistics Tools / Command (Linux)

- Build a Linux development environment under STC89C52RC (Linux)

- [Android] Eclipse does not update the Android SDK Manager solution [using GoAgent] (Programming)

- Two kinds of agents of Spring AOP (Programming)

- Linux Man Page Installation (Linux)

 
         
  Linux FAQ - How to fix tar:Exitingwith failure status due to previous errors
     
  Add Date : 2016-11-09      
         
       
         
  Question: When I want to try to tar command to create a compressed file, always in the implementation process fails and throws an error description "tar: due to a previous error led to the failure of the state exit" ( "Exiting with failure status due to previous errors "). What causes this error occurs, how to solve?

If when you execute tar command, encountered the following error, then the most likely reason is that you want to compress a file using the tar command, you do not have permission to read it.

tar: Exitingwith failure status due to previous errors
So how do we determine the cause of the error (s) document? Or how to identify other sources of error?

Indeed tar command should print out the so-called "last error" ( "previous errors") in the end what is wrong, but if you allow tar to run in verbose mode (ie verbose mode, for example, -cvf), then you will be very easy to miss this information. To find this information, you can like it, tar standard output (stdout) of the information filtered out.

$ Tar cvzfz backup.tgz my_program /> / dev / null
Then you will see the standard error tar output (stderr) information. (LCTT Annotation: natural, not v parameter can be.)

tar: my_program / src / lib / .conf.db ~ lock ~:. Can not open: Permission denied
tar: Exitingwith failure status due to previous errors
As you can see from the above example, the cause of the error is indeed a "read access is not allowed" (denied read permission.) To solve this problem, simply change (or remove) the problem file permissions, and then re-run tar command.
     
         
       
         
  More:      
 
- AngularJS (Programming)
- When Vim create Python scripts, vim autocomplete interpreter and encoding method (Programming)
- How to compile and install wxWidgets in Ubuntu / Debian / Linux Mint (Linux)
- Java reflection mechanism explained in detail and Method.invoke explanation (Programming)
- Firewall Configuration Red Hat Enterprise Linux 4 (Linux)
- Ubuntu firewall installation and configuration (Linux)
- CentOS 7.0 Enable iptables firewall (Linux)
- Java annotations entry automatically generates SQL statements (Programming)
- Linux hybrid character device (Linux)
- Linux SU command security Suggestions (Linux)
- Linux package management operations Basic entry (Linux)
- Upgrading Oracle 11.2.0.1 to 11.2.0.3 (Database)
- Atlassian Linux Shell Scripting the confluence remote backup methods (Linux)
- Different versions of MongoDB achieve master-slave replication (Database)
- Attic-- delete duplicate data backup program (Linux)
- Linux uses a screen recording under RecordMyDesktop (Linux)
- How to use nmap command in Linux (Linux)
- What happens after the MySQL disk space is full (Database)
- Use backup-manager system backup on Linux (Linux)
- Setting Wetty do not need an account login command line operations (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.