LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 07-01-2007, 10:49 PM   #1
ProoN
LQ Newbie
 
Registered: May 2005
Posts: 10

Rep: Reputation: 0
tar -jxvf returns "decompression failed" error


I'm currently running FreeBSD 6.1, and recently had to format and reinstalled it. When trying to unpack bzip2 files (using tar -jxvf filename), I get an error that returns,

tar: bzip2 decompression failed

and with .gz files (using tar -xzvf), it unpacks a couple of the files, stops, and returns,

tar: unrecognized archive format: Inappropriate file type or format"

When I boot up to Slackware (It's a multi-boot system), I also get errors.

bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files."

tar: Child returned status 2
tar: Eror exit delayed from previous errors


I've tried to unpack different files, but always get errors. I've also tried what the errors suggest, but still no avail. It used to work fine until I reformatted. I have an FTP server set up that I use to transfer said files from to the *nix machine.. maybe that has something to do with it? I don't know. I just thought I'd mention it. Any help with this would be appreciated, though.. can't really do much without being able to unpack files.
 
Old 07-02-2007, 01:45 AM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
If you transfer the files "to the *nix" machine, does this mean that the files are being transferred from a Microsoft (spit) Windows machine?

If so, you may have transferred the files in ascii mode, rather than binary mode. That would corrupt them, since they're not plain text files.

For further information, do this at the command prompt:

Code:
man ftp
Hope this helps.
 
Old 07-02-2007, 10:31 AM   #3
ProoN
LQ Newbie
 
Registered: May 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Wow, that was easy enough. Thanks for the help. =)
 
Old 07-02-2007, 02:01 PM   #4
ProoN
LQ Newbie
 
Registered: May 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Hmm, one more quick question. How would I go about setting the default transfer type to binary rather than it being ASCII? Otherwise, I have to use "type binary" every time.
 
Old 07-03-2007, 07:10 AM   #5
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
I'm unaware of any simple way of making the default transmission mode be binary. This has been a snare for everyone using Microsoft (spit) Windows ftp servers in a *nix environment.

If you're going to be doing this a lot, I recommend you have some fun with the following command:

Code:
man expect
Wrapping the use of expect around your use of ftp can solve the problem easily. It's not a five-minute project, but it will be useful in the long run if you run into this situation a lot. Of course, it may be easier for you simply to train your fingers to type binary as in every use of ftp. That's what I do, and it never hurts.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TFTP server returns "Error Code 0: Permission Denied" gi99 Linux - Networking 2 04-19-2011 06:17 AM
Network boot returns "UDP Checksum Error" iainr Linux - Networking 1 08-06-2009 01:58 PM
executing a loaded module returns "command not found" error neelay1 Linux - Software 1 05-08-2006 02:25 PM
Apache Alias Returns 404 or "Cannot find server or DNS Error" The00Dustin Linux - Software 3 02-14-2006 12:44 PM
Adding a directory returns "no medium found" error JcN Linux - Newbie 7 02-01-2006 08:40 PM


All times are GMT -5. The time now is 09:30 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration