LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-06-2008, 12:14 AM   #1
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Rep: Reputation: 32
gunzip: [file] has more than one entry -- unchanged


Hello all

Let me start by saying this:

New kernel - 2.6.24
AMD 64 bit system.
No other changes made. Can't remember using gzip yet... but likely have.

I'm trying to uncompress a tar.gz file. It happens to be truecrypt 5.0 that just was released.

For the life of me I can't get it to gunzip.

Code:
gunzip [file.tar.gz]
and
Code:
gzip -d [file.tar.gz]
both give the same error:
Code:
gunzip: TrueCrypt 5.0 Source.tar.gz has more than one entry -- unchanged
or
Code:
gzip: TrueCrypt 5.0 Source.tar.gz has more than one entry -- unchanged
I thought it might be a problem with the filename containing spaces so I renamed it to one without spaces but the same error is the result.

tar xzf [file.tar.gz] gives this error:
Code:
gzip: stdin has more than one entry--rest ignored
tar: Child returned status 2
tar: Error exit delayed from previous errors
Anyone seen this before? Is this related to the kernel or 64 bit system?

I tried updating gzip but it is already the newest. Tar also... but I didn't think that would help anyway.

Thanks in advance.
 
Old 02-06-2008, 01:02 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Weird! And then some!

I just downloaded the truecrypt tarball and ran gunzip <filename>.tar.gz and it unziped just fine.

Then I did tar -xvf <filename>.tar and it untared.

A typo, perhaps?
 
Old 02-06-2008, 01:25 AM   #3
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Original Poster
Rep: Reputation: 32
I have no idea.

Tried gzip with kernel 2.6.18-5 hoping I did something weird when I compiled the kernel (I have no idea what could be causing this) with no luck.

I eventually got it to unzip with unzip...

I'm sure I'll be back here the next time I run into this problem.
 
Old 02-06-2008, 03:02 AM   #4
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 307

Original Poster
Rep: Reputation: 32
Very strange.

Just downloaded another tar.gz tarball and had no problem using gunzip. Worked like a charm.
unzip, however, did not work.

Something to do with zip version?

*shrug*

I'll just remember to try one and if it doesn't work try the other.
 
Old 02-06-2008, 04:16 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The extension is probably incorrect, it is probably a ZIP file, not a gz file. ZIP files can be unpacked using unzip, gz files can be unpacked using gunzip.

Try the file command on the original file and see what it says. Example output:
Quote:
$ zip tets tets
$ gzip tets

$ ls -l tets*
tets.gz
tets.zip

$ file tets.*
tets.gz: gzip compressed data, was "tets", from Unix, last modified: Wed Feb 6 11:07:03 2008
tets.zip: Zip archive data, at least v1.0 to extract
Remember: Under Unix and linux the extension does _not_ dictate what the file is (unlike Windows). You can rename tets.gz to tets.i.hate.extension and it would still be a gzipped file:
Quote:
$ mv tets.gz tets.i.hate.extension
$ file tets.i.hate.extension
$ tets.i.hate.extension: gzip compressed data, was "tets", from Unix, last modified: Wed Feb 6 11:07:03 2008
Hope this helps.

Last edited by druuna; 02-06-2008 at 01:52 PM. Reason: Fixed a typo.
 
1 members found this post helpful.
Old 03-08-2012, 04:10 AM   #6
JamesR404
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Cool Multiple files in your zip file?

One can also get this error if you have a zip file that contains more than one file.

On Windows use 7-Zip or whatever to 1) unzip the file,
2) tar the contents of the zip file so that it's one file,
3) zip the file,

4) upload it to the unix/linux box and
5) unzip it using a command like: "tar -C /mydir -zxvf yourfile" to extract to /mydir
 
Old 12-13-2013, 04:45 AM   #7
jako
LQ Newbie
 
Registered: Dec 2013
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by checkmate3001 View Post
Hello all
...
Code:
gunzip: TrueCrypt 5.0 Source.tar.gz has more than one entry -- unchanged
It is an indication that there are hardlinks to this file (inode). Whichever way you've ended up in a situation where you have hardlinks there you can wiggle yourself out by deleting all the other hardlinks to this file and use g(un)zip on the last remaining one OR you can make a copy and decompress the copied file.
 
Old 09-06-2023, 07:22 AM   #8
joejoejoey
LQ Newbie
 
Registered: Sep 2023
Posts: 1

Rep: Reputation: 0
use the zip utility not the gzip
sudo yum install zip -y
unzip filename
 
  


Reply

Tags
error, gzip



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab remain unchanged at reboot ago.homer Linux - Newbie 1 04-20-2005 05:24 AM
lm-sensors unchanged values ndm Linux - Laptop and Netbook 1 02-25-2004 06:44 AM
lm-sensors unchanged values ndm Linux - Newbie 0 02-25-2004 05:21 AM
Need serious help in vi (Red Hat 9, unchanged kernel) Echs Bochs Linux - General 8 01-23-2004 03:23 PM
How to install a .gz file after using gunzip lel800 Linux - Newbie 6 10-10-2003 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration