6
0
I am trying to follow the instructions here to install Jetty on ubuntu but I am running into a problem when I try to use tar.
cd /usr/local/src
sudo wget http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.1.0.v20131115.tar.gz&r=1
But when I try
sudo tar -xfz etty-distribution-9.1.0.v20131115.tar.gz
I get the error
tar: z: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
What am I doing wrong? (I also tried as root but it did not help)
EDIT
None of the suggested answers is working for me. Below I copy my attempts from the command line. What am I doing wrong?
a@b:/usr/local/src$ ls
download.php?file=%2Fjetty%2F9.1.0.v20131115%2Fdist%2Fjetty-distribution-9.1.0.v20131115.tar.gz
download.php?file=%2Fjetty%2Fstable-9%2Fdist%2Fjetty-distribution-9.1.0.v20131115.tar.gz
a@b:/usr/local/src$ tar -tfz jetty-distribution-9.1.0.v20131115.tar.gz
tar: z: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
a@b:/usr/local/src$ tar -tfz /usr/local/src/jetty-distribution-9.1.0.v20131115.tar.gz
tar: z: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
a@b:/usr/local/src$ sudo tar xfz download.php?file=%2Fjetty%2F9.1.0.v20131115%2Fdist%2Fjetty-distribution-9.1.0.v20131115.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
a@b:/usr/local/src$ sudo tar xfz jetty-distribution-9.1.0.v20131115.tar.gztar (child): jetty-distribution-9.1.0.v20131115.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
a@b:/usr/local/src$ ^C
a@b:/usr/local/src$
You may want to check this answer; the order of your flags as
– nyedidikeke – 2018-11-24T05:43:27.040-xfz
seem to be the issue; thef
needs to come last.Similar to http://superuser.com/q/150777/38005 (but not exactly)
– Joseph Quinsey – 2013-12-20T16:35:15.130And similar to http://superuser.com/q/211941/38005
– Joseph Quinsey – 2013-12-20T22:11:30.033Run
file download.php...
long filename omitted. This should at least tell you if you have an actual archive. A common error withwget
is a login or redirect (or 404) HTML page being saved instead of the target file. Then it would not be recognised as a gzip as you are seeing. – Greg – 2013-12-22T12:44:04.360