3
1
I am trying to run the following command after I have downloaded a tar file using the sudo wget command to install CasperJS on our Ubuntu box.
sudo tar -xvf casperjs.tar
This does not look like a tar archive
Skipping to next header
Exiting with failure status due to previous errors
Do I need to run the original sudo tar command differently?
1What commands/url/file did you use for wget. A downloaded tar is normally compressed like a
.tgz
or.gz
. (I seldom see an uncompressed.tar
file online) – Rik – 2013-11-08T10:09:42.163The command was :- sudo wget -O casperjs.tar https://github.com/n1k0/casperjs/tarball/1.0.0
– Zabs – 2013-11-08T10:11:03.120By the way why do you add
sudo
in front of all commands? From the security point of view you certainly should not run Internet clients (wget
) as a superuser. – pabouk – 2013-11-08T11:10:54.220For future reference: There is a nice command named
file
. If I usefile demo.tgz
I get ademo.tgz: gzip compressed data, from Unix, last modified: Fri Nov 8 13:31:16 2013
. Runningfile
on a plain tar file returns: 'demo.tar: POSIX tar archive'. – Hennes – 2013-11-08T12:33:10.057