Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Solved can't extract a tar file

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
frank56
Posts: 193
Joined: 2009-03-27 17:51

Solved can't extract a tar file

#1 Post by frank56 »

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

User avatar
_Alex_
Posts: 460
Joined: 2008-12-20 17:49
Location: Netherlands

Re: can't extract a tar file

#2 Post by _Alex_ »

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
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: can't extract a tar file

#3 Post by 4D696B65 »

Also, why are you doing this as root in your home directory?

frank56
Posts: 193
Joined: 2009-03-27 17:51

Re: can't extract a tar file

#4 Post by frank56 »

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

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: can't extract a tar file

#5 Post by 4D696B65 »

Sounds like a corrupt file. Does this happen with all tar.gz files? or just this one?

frank56
Posts: 193
Joined: 2009-03-27 17:51

Re: can't extract a tar file

#6 Post by frank56 »

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

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: can't extract a tar file

#7 Post by nadir »

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.

frank56
Posts: 193
Joined: 2009-03-27 17:51

Solved Re: can't extract a tar file

#8 Post by frank56 »

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

ActionParsnip
Posts: 13
Joined: 2011-04-08 22:55

Re: Solved can't extract a tar file

#9 Post by ActionParsnip »

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.

Post Reply