bzip2 uncompress issue

You have a problem with Salix? Post here and we'll do what we can to help.
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

bzip2 uncompress issue

Post by pnbalaji »

Hi,

I downloaded a zip file from one of our vendor portal and tried to unzip the file with Archive Manager and Xarchiver. However, I am getting the message "Skipping 1.txt. 'bzip2' method not supported'.

Can some one help? I have bzip2 installed already.

Thanks,
Balaji.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: bzip2 uncompress issue

Post by gapan »

I think you are confused, or what you write is confusing. You're talking about a zip file and then you're talking about bzip2 compression. These are not the same thing. Not the same filetypes, not the same compression method either.
Image
Image
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

Re: bzip2 uncompress issue

Post by pnbalaji »

Hi,

Thanks for the response.

I know I mentioned about the zip because the file name is "INV_01XX.zip". However, when I try to extract the file Archive Manager complains that bzip2 is not supported. I am assuming that the vendor portal uses the bzip2 compression method to create the zip file instead of .bz2 file.

Let me know if it still confuses you.

Thanks,
Balaji.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: bzip2 uncompress issue

Post by gapan »

Yes, it does. If it says ".zip", it's not a bzip2 compressed file, it is a zip compressed file.

And certainly engrampa, the archive manager we have as default in salix, can decompress both zip and bzip2 compressed files.
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: bzip2 uncompress issue

Post by mimosa »

In a terminal try

Code: Select all

unzip -lv (whatever the file is called)
This should list the files (rather than actually extracting anything) and also give verbose output.

If it isn't actually a zip archive, it will say so. If you think it's bzip2, tar should do the job (I don't know if it cares whether the file you give it has the correct termination). Try:

Code: Select all

tar -xvf (filename)
which I think will unpack almost anything, and give verbose output. If it really is bzip2, the right switch is j I think:

Code: Select all

tar -xjvf (filename)
though again, it may want the filename to end in .bz2

This is largely from memory so if in doubt, please check the relevant man pages.

EDIT

Also, check the download isn't corrupted.
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

Re: bzip2 uncompress issue

Post by pnbalaji »

Hi,

Below are the outputs that I am getting.
[bneelka@darkstar~/corp/salesforce]unzip -lv INV_20130502121041.zip
Archive: INV_20130502121041.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
613 BZip2 403 34% 03-20-2012 00:00 3fe5bb5b 11265422.txt
1626 BZip2 553 66% 03-20-2012 00:00 4a704afb 11265424.txt
721 BZip2 465 36% 03-20-2012 00:00 7154f15f 11265425.txt
1375 BZip2 683 50% 08-07-2012 00:00 efcddb9f 11730586.txt
1378 BZip2 724 48% 08-07-2012 00:00 ba703b71 11730587.txt
1753 BZip2 790 55% 08-07-2012 00:00 98eaff02 11730588.txt
1207 BZip2 657 46% 08-07-2012 00:00 1e925e6f 11730591.txt
473 BZip2 350 26% 08-07-2012 00:00 8f3b006d 11732995.txt
:
:
:
474 BZip2 303 36% 03-27-2012 00:00 f37d621e 11311609.txt
-------- ------- --- -------
159062 98587 38% 235 files
[bneelka@darkstar~/corp/salesforce]

[bneelka@darkstar~/corp/salesforce]tar -xvf INV_20130502121041.zip
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

[bneelka@darkstar~/corp/salesforce]tar -xjvf INV_20130502121041.zip
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
I tried to uncompress one file from the zip using xarchiver and this is what I am seeing.

Image

I will try to re-download the file and see how it works.

Thanks,
Balaji.
User avatar
knome
Donor
Posts: 163
Joined: 20. Dec 2012, 19:36
Location: UK

Re: bzip2 uncompress issue

Post by knome »

What happens if you "extract" the file and then try and read it in a text editor? The .txt file may already be in an unzipped state.
Image
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

Re: bzip2 uncompress issue

Post by pnbalaji »

I am getting the above error messages even when I try to extract one single file from the archive.

Thanks,
Balaji.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: bzip2 uncompress issue

Post by gapan »

What happens if you run:

Code: Select all

unzip INV_20130502121041.zip 
Image
Image
pnbalaji
Posts: 99
Joined: 23. Apr 2013, 21:02

Re: bzip2 uncompress issue

Post by pnbalaji »

This is what I am getting.

[bneelka@darkstar~/corp/salesforce]unzip INV_20130502121041.zip
Archive: INV_20130502121041.zip
skipping: 11265422.txt `bzip2' method not supported
skipping: 11265424.txt `bzip2' method not supported
skipping: 11265425.txt `bzip2' method not supported
skipping: 11730586.txt `bzip2' method not supported

I re-downloaded the file several times and I am getting the same error message every time. It doesn't work in windows also. So, at this point, I am assuming that this is a problem with the vendor portal and I sent an email to them just now. Thanks for every one who were trying to help.

I will keep you posted once I get response from the vendor.

Thanks,
Balaji.
Post Reply