Solved can't extract a tar file

New to Debian (Or Linux in general)? Ask your questions here!

Solved can't extract a tar file

Postby frank56 » 2011-03-26 17:51

I get a message this does not look like a tar file. Here is my terminal output. I also am using Squeeze 6.0

root@debian:/home/frank/Downloads# tar -xvf Sprint4GDeveloperPack-1.6.1.2A.tar.gz

tar: This does not look like a tar archive



gzip: stdin: unexpected end of file

tar: Child returned status 1

tar: Error is not recoverable: exiting now

root@debian:/home/frank/Downloads#


I tried google and searching debian forum.
Last edited by frank56 on 2011-03-26 22:49, edited 1 time in total.
Hi! my name if Frank. I have tried before to jump into linux about 8 years ago, but gave up after not being able to get hardware going. Now I will try again, and feel a need to learn to do more from the command line Frank
frank56
 
Posts: 193
Joined: 2009-03-27 17:51

Re: can't extract a tar file

Postby _Alex_ » 2011-03-26 17:54

Shouldn't you use:
Code: Select all
tar -xzvf


I am not sure but that is what I usually do with tar.gz.
( 'z' option for GZIP)

Alex.
User avatar
_Alex_
 
Posts: 459
Joined: 2008-12-20 17:49
Location: Netherlands

Re: can't extract a tar file

Postby 4D696B65 » 2011-03-26 17:59

Also, why are you doing this as root in your home directory?
User avatar
4D696B65
 
Posts: 2197
Joined: 2009-06-28 06:09

Re: can't extract a tar file

Postby frank56 » 2011-03-26 19:37

Thanks Alex and 4D. I tried both of your suggestions, hoping its not too late. Here is the results:


frank@debian:~/4Gmodem$ ls

Sprint4GDeveloperPack-1.6.1.2A.tar.gz

frank@debian:~/4Gmodem$ tar -xzvf Sprint4GDeveloperPack-1.6.1.2A.tar.gz



gzip: stdin: unexpected end of file

tar: Child returned status 1

tar: Error is not recoverable: exiting now

frank@debian:~/4Gmodem$
Hi! my name if Frank. I have tried before to jump into linux about 8 years ago, but gave up after not being able to get hardware going. Now I will try again, and feel a need to learn to do more from the command line Frank
frank56
 
Posts: 193
Joined: 2009-03-27 17:51

Re: can't extract a tar file

Postby 4D696B65 » 2011-03-26 19:47

Sounds like a corrupt file. Does this happen with all tar.gz files? or just this one?
User avatar
4D696B65
 
Posts: 2197
Joined: 2009-06-28 06:09

Re: can't extract a tar file

Postby frank56 » 2011-03-26 22:09

I am following this tip on another website. I don't know if it answer part of your question.

rank@debian:~$ echo "hallo" > tempfile

frank@debian:~$ tar cvf tempfile.tar tempfile

tempfile

frank@debian:~$ gzip tempfile.tar

frank@debian:~$ tar zxvf tempfile.tar.gz

tempfile

frank@debian:~$ ls

4Gmodem Documents Music Public tempfile.tar.gz Videos

Desktop Downloads Pictures tempfile Templates

frank@debian:~$



I also typed ...type tar and got .. tar is hashed (/bin/tar). I will try other tar files if I find some.
Hi! my name if Frank. I have tried before to jump into linux about 8 years ago, but gave up after not being able to get hardware going. Now I will try again, and feel a need to learn to do more from the command line Frank
frank56
 
Posts: 193
Joined: 2009-03-27 17:51

Re: can't extract a tar file

Postby nadir » 2011-03-26 22:32

I downloaded the first link:
http://www.google.co.uk/search?sclient= ... gle+Search
and it untar-ed just fine. Did you try another download?
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
User avatar
nadir
 
Posts: 5964
Joined: 2009-10-05 22:06
Location: away

Solved Re: can't extract a tar file

Postby frank56 » 2011-03-26 22:49

Thanks everyone. I had cancelled download. I did a new download, following all the tips everyone gave me, and I got this.


frank@debian:~/second_clear4g$ ls

install.sh Sprint4GDeveloperPack-1.6.1.2A.tar.gz

passphrase-o-tron Sprint4GMBBUtilities.tar.gz

patches SprintMobileBroadband3GSetupGuide-Linux-1.4.2.pdf

README.txt SprintMobileBroadband4GSetupGuide-Linux-1.3.pdf

Rel_6.1.2_USB.zip Wimax_Network_CAs.tar.gz

ReleaseNotes.txt


Now I will see if can make this a deb package, using Soul Searchings tips or other. Or somehow get connection manager to work. for Clearwire instead of Sprint.
Hi! my name if Frank. I have tried before to jump into linux about 8 years ago, but gave up after not being able to get hardware going. Now I will try again, and feel a need to learn to do more from the command line Frank
frank56
 
Posts: 193
Joined: 2009-03-27 17:51

Re: Solved can't extract a tar file

Postby ActionParsnip » 2011-04-11 11:48

you can make life a LOT easier with:

# apt-get install unp

Then just use:

unp filename

for EVERYTHING, unp will analyse the file and use the correct extraction command.
ActionParsnip
 
Posts: 13
Joined: 2011-04-08 22:55


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable