Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-17-2003, 07:58 PM
|
#1
|
Member
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90
Rep:
|
Why can't I unzip a .tar.gz file
I have downloaded several .tar.gz files containing source code for various packages. When I try to unzip them (using zcat <filename>, tar -zxvf <filename>, or gunzip <filename>) I ger the following error: invalid compressed data--format violated.
I doubt that every file I've downloaded is corrupt, so what simple stupid mistake am I making to cause this error to keep coming up?
-Dewar
|
|
|
09-17-2003, 08:08 PM
|
#2
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
Verify that the files are in fact GZip by using the file command.
|
|
|
09-17-2003, 08:49 PM
|
#3
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
try:
tar xvzf $file_name
|
|
|
09-18-2003, 11:07 AM
|
#4
|
Member
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90
Original Poster
Rep:
|
The file command gives me the following info:
gzip compressed data, deflated, last modified.... max compression, os: Unix
the tar command without the dash gives me the same output as the command with the dash.
For a little background, I'm using SuSE professional 8.0 with a 2.4.18 kernel.
Thanks for the help,
-Dewar
|
|
|
09-18-2003, 11:30 AM
|
#5
|
Member
Registered: Jul 2003
Location: London
Posts: 548
Rep:
|
okay, try to first just gunzip them:
gunzip $file
and post back results
|
|
|
09-18-2003, 12:15 PM
|
#6
|
Member
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90
Original Poster
Rep:
|
Gunzip was included in the list of command's I'd tried in the first post. gunzip, tar, and zcat all give me the same error. Strangely, winzip in windows NT lets me open it up fine.
-Dewar
|
|
|
09-18-2003, 02:50 PM
|
#7
|
Member
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719
Rep:
|
what is the file. I'll d/l it and try to open it.
|
|
|
09-18-2003, 03:01 PM
|
#8
|
Member
Registered: Sep 2002
Location: São Paulo -Brazil
Posts: 76
Rep:
|
hi winzip open archive ?
try:unzip
or
gzip -d file.tar.gz | tar-xvf file.tar
|
|
|
09-18-2003, 05:07 PM
|
#9
|
Member
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90
Original Poster
Rep:
|
Thanks for the help everyone, but I was overcomplicating things. When I was transfering the file from the windows machine where it resides, not transfering in binary cause some data errors. Once I figured that out, and re-transfered the file, all was well.
-Dewar
|
|
|
All times are GMT -5. The time now is 03:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|