- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar: blocksize = 0; broken pipe? problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2008 02:32 AM
тАО08-17-2008 02:32 AM
i am installed more patch with .tgz extention (34MB).
but when i try to install this patch by this command
tar -xvf /tmp/patch/hpux__11.00_08130943.tgz
i see this problem
Tar: blocksize = 0; broken pipe?
and after this command i see
gzcat /tmp/patch/hpux__11.00_08130943.tgz | tar -xf -
unexpected end of file
Tar: blocksize = 0; broken pipe?
how to solve this problem????
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2008 04:30 AM
тАО08-17-2008 04:30 AM
Re: Tar: blocksize = 0; broken pipe? problem
Its not a tar file.
Its a tgz file
http://www.computerhope.com/issues/ch000506.htm
http://en.wikibooks.org/wiki/Guide_to_Unix/Commands/File_Compression
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2008 04:53 AM
тАО08-17-2008 04:53 AM
SolutionYes, an old UNIX "tar" program can't do the
required "gzip -dc"="gzcat". (And I believe
that even GNU "tar" needs a "-z" option to
tell _it_ to do it.)
> gzcat /tmp/patch/hpux__11.00_08130943.tgz | tar -xf -
Should work better.
> unexpected end of file
Do you have the whole xxx.tgz file, or was
its download aborted before you got it all?
ls -l /tmp/patch/hpux__11.00_08130943.tgz
What does it say if you change "tar -xf -" to
"tar -tvf -"? (Are you getting nothing, or
only some of the files in the payload?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2008 06:30 AM
тАО08-17-2008 06:30 AM
Re: Tar: blocksize = 0; broken pipe? problem
cd /tmp/patch
(make a copy of the file or use "mv" instaed of "cp")
cp hpux__11.00_08130943.tgz hpux__11.00_08130943.tar.gz
(uncompress the gz file, should give you the tar file)
gunzip hpux__11.00_08130943.tar.gz
(Extract the tar file)
tar -tvf hpux__11.00_08130943.tar
You will see whether the error is in the compressed file or in the tar file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2008 06:20 PM
тАО08-17-2008 06:20 PM
Re: Tar: blocksize = 0; broken pipe? problem
After you downloaded your patch bundle, you should check the checksum values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2008 08:38 PM
тАО08-17-2008 08:38 PM
Re: Tar: blocksize = 0; broken pipe? problem
Try running cksum on this file and verify if you get same value that you see on the website you downloaded this file
so run following
file /tmp/patch/hpux__11.00_08130943.tgz
cksum /tmp/patch/hpux__11.00_08130943.tgz
see the results if not same then download the file again!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2008 08:55 PM
тАО08-17-2008 08:55 PM
Re: Tar: blocksize = 0; broken pipe? problem
see if you get the same stuff.
Please say that you're not using MSIE on some
Windows system to do the download.
Too-clever browsers often "help" the user by
decompressing compressed files without
adjusting the file name accordingly.
> unexpected end of file
> You will see whether the error is in the
> compressed file or in the tar file.
Someone thinks that the file ends too soon.
I doubt that gzip/gzcat is truncating a
complete ".tgz" file, and I doubt that "tar"
is giving up before it sees the end of the
expanded data. I claim that it doesn't
really matter who's emitting the complaint.
The ".tgz" file is almost certainly corrupt,
although without a better description of its
history, it'll be hard to assign the blame.
Whether it started out corrupt, or got that
way in transit, it's sure bad now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2008 01:30 AM
тАО08-19-2008 01:30 AM