/bin/tar: Cowardly refusing to create an empty archive
Hi all! I am having problems with an installer for a program. The installer itself is a compiled script that wants to use the "tar" command for making some backups prior to actual installation. The problem is that when it calls "tar" to try to do so, it fails with the following message:
Code:
/bin/tar: Cowardly refusing to create an empty archive Note that, as I mentioned before, it is a compiled installer so unfortunately I am not able to change/modify it :( I would be really grateful if somebody has any ideas as to how I could bypass this problem! Cheers, Jorge. |
Maybe you can copy tar from centos to opensuse.
|
The problem is that the resulting command line is malformed
Code:
exec $TAR -cf $backupDir/$backFile -I ./existfiles.txt On the other hand, if you suspect the problem is tied to the tar version, you may locally install the older version and temporarily adjust the PATH to point to the (newly installed) older tar. Just for the time of the installation and doing this in the terminal from which you launch the installer. You can find the source code of version 1.15.1 on the official GNU ftp archive. Another option is to check if the installer has the ability to skip the backup process. Maybe running it with --help? |
Thanks for the ideas!. Since reporting the bug to the developers would take a very long time to solve my problem (if ever), I will try to follow the suggestion of installing an older version of tar (the installer itself doesn't have any help info and the backup step seems un-bypassable!). I'll report on what I find.
Cheers, Jorge. |
Good luck with that. I looked back at old versions of GNU tar, and previous to the introduction of "-I" as a short form for "--use-compress-program" it wasn't recognized at all.
I suggest writing a small wrapper script that changes "-I" to "-T" before invoking /bin/tar. Name the script "tar" and put it in some directory ahead of /bin in your PATH. |
All times are GMT -5. The time now is 07:25 AM. |