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 pwd command learning experience (Linux)

- Linux RAID Set RAID 10 or 0 + 1 (Linux)

- Linux three ways to set environment variables (Linux)

- How to install Zephyr Test Management Tools on CentOS 7.x (Server)

- CentOS installation Percona Server 5.5.42 compiling problem solve one case (Linux)

- Ubuntu 14.04 Solution login interface infinite loop (Linux)

- How to download video youtube-dl in Linux (Linux)

- Linux startup and logon security settings (Linux)

- MySQL management partition table (Database)

- Ubuntu 15.10 installation and deployment Swift development environment (Linux)

- Bash added to the Vi mode indicator (Linux)

- How to find the available network adapter on Ubuntu (Linux)

- RedHat Linux source code package installation process (Linux)

- Basic Operation Linux files and directories (Linux)

- Use ARChon runtime environment to run Android apps on Ubuntu (Linux)

- Linux kernel update error, update-initramfs: failed Solution (Linux)

- GEC2440 easiest a kernel compile Linux2.6.30.4 (Programming)

- Protobuf compiled and used on the Ubuntu 14.04 (Programming)

- High-performance JavaScript reflows and repaints (Programming)

- CentOS 6.4 RPM install MySQL-5.6.22-1 (Database)

  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.
- Linux System shutdown procedures (Linux)
- Using Ruby to build a simple HTTP service and sass environment (Server)
- Upgrade Goldengate to (Database)
- QEMU image file used: qcow2 and raw (Linux)
- Ubuntu under Spark development environment to build (Server)
- command-line tool for send e-mail (Linux)
- Java development environment to build under Ubuntu (Linux)
- Linux batch copy data script (Linux)
- Struts2 Result Types (Programming)
- JavaScript Advanced Programming notes event capture and event bubbling (Programming)
- About Linux operating system security (Linux)
- Android Activity launchMode (Programming)
- Java implementation chain store binary search tree (recursive method) (Programming)
- Offline (local) Yum source structures (Linux)
- How to Install Sticky Notes on Ubuntu and Derivatives (Linux)
- DB2 manually create a library (Database)
- Java implementation linear table - represents the order of representation and chain (Programming)
- C ++, overloading, cover, hide (Programming)
- How to Install terminator 0.98 on Ubuntu and Linux Mint (Linux)
- Dell R710 server disk recovery database one case (record) (Server)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.