LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2012, 03:44 PM   #1
Aqua_Regia
Member
 
Registered: Oct 2011
Posts: 37

Rep: Reputation: Disabled
bzip2: (stdin) is not a bzip2 file. error


I've been trying to uncompress the file XpressConnect-x86.tar.bz2 using the tar command but I keep getting the following error.

Code:
richard@richard-K52Jr:~/Software$ tar -xvjf XpressConnect-x86.tar.bz2 
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
I think it may be a problem with the file itself b/c it was provied by our wonderfully incompetent IT dep. I've also tried tar -xvf but that did not work either. I'll attach the file to this post if I can any help would be appreciated.
 
Old 04-15-2012, 03:57 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
What is the output of the following command?
Code:
file XpressConnect-x86.tar.bz2
It could be either a badly created file or a badly formed file name. Or eventually it is the result of an erroneous download.
 
Old 04-15-2012, 04:05 PM   #3
Aqua_Regia
Member
 
Registered: Oct 2011
Posts: 37

Original Poster
Rep: Reputation: Disabled
The output is:

[code]
richard@richard-K52Jr:~/Software$ file XpressConnect-x86.tar.bz2
XpressConnect-x86.tar.bz2: HTML document text
[\code]
 
Old 04-15-2012, 04:34 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Ok. It appears to be caused by an erroneous download (or even an erroneous upload on the server from which you downloaded it). Anyway, how did you get it? From a browser? Using wget? Try to download it again and/or share the link if it is public stuff so that we can test it.
 
Old 04-15-2012, 04:43 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
let's see
using tar on a bzip2 file ?

and this bz2 file is a html text file ?
odd

what did you DL and save ?
the file or a html link ( web address ) to the file

Code:
bzip2 -d XpressConnect-x86.tar.bz2
- then tar --

tar -xf XpressConnect-x86.tar
however just using "tar" should have done it

or if you have a gui
double click the file and have your archive manager open it in the GUI
"file-roller" for Gnome
"ark" for KDE
 
Old 04-15-2012, 04:56 PM   #6
Aqua_Regia
Member
 
Registered: Oct 2011
Posts: 37

Original Poster
Rep: Reputation: Disabled
I'm getting the file from here:

Code:
wget <moderated - see below>
I tried using bzip2 to to extract:
Code:
richard@richard-K52Jr:~/Software$ bzip2 -d XpressConnect-x86.tar.bz2
bzip2: XpressConnect-x86.tar.bz2 is not a bzip2 file.
If you can't get the file using the above url I also uploaded it here (my FTP server is down): <moderated - see below>

Last edited by colucix; 04-15-2012 at 05:11 PM. Reason: Removed reference to commercial software.
 
Old 04-15-2012, 05:10 PM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Well, if you open the HTML file with a text editor, you can see some reference to a password protection mechanism to download the file. In other words it is not a direct download you can easily resolve using wget, but it goes through a java script that manages authentication.

Since XpressConnect is not a free and open source software, I'm going to remove the links from your post. Your best bet is to contact the IT department to ask for clarification about how to get the software (that should be properly licensed).

On the other hand, please notice I asked to share the link if it was public stuff (see post #4 above).

Last edited by colucix; 04-15-2012 at 05:13 PM.
 
Old 04-15-2012, 05:28 PM   #8
Aqua_Regia
Member
 
Registered: Oct 2011
Posts: 37

Original Poster
Rep: Reputation: Disabled
Ok. Thanks for the help. The guys that set up the network for linux should be back on monday so I guess I'll have to wait till then. I tought that the xpress connect application was freeware, anyone can downlowd it here, should have double checked.
 
Old 04-15-2012, 05:34 PM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
No problem. The only solution is to retrieve the correct file. Good luck!
 
Old 05-25-2015, 11:57 AM   #10
dado_linux
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
Did you try with:
Code:
tar -xvf XpressConnect-x86.tar.bz2
 
Old 05-25-2015, 03:19 PM   #11
fatmac
Senior Member
 
Registered: Sep 2011
Location: Surrey/Hants Border, UK
Distribution: BSD & Linux - As long as they are Lightweight
Posts: 1,500

Rep: Reputation: Disabled
Quote:
Originally Posted by dado_linux View Post
Did you try with:
Code:
tar -xvf <filename>.tar.bz2
See man tar

x=extract
v=verbose
f=filename

z=gzip/gunzip
j=Bzip2/Bunzip2



Edit: c=create

Last edited by fatmac; 05-25-2015 at 03:20 PM.
 
Old 05-26-2015, 05:26 AM   #12
dado_linux
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
That's ok, agree with you, but this worked for me yesterday... I have downloaded the newest stable version of linux kernel and -xvf was enough to work with tar.bz2 file.
 
Old 05-26-2015, 05:46 AM   #13
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Look at the date on the original post - over 3 years ago.
 
Old 05-26-2015, 06:47 AM   #14
dado_linux
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
That is right, but it is obvious that still there are visitors with the same problem.
Most of the posts are many years old, but the problems for many linux beginners are the same.
So, any experience plus is welcome for all of us. Moreover, pls read the answer given by the moderator.
 
Old 05-26-2015, 04:09 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
if your problem is like the OP's
the op downloaded a html link to a file behind a javascript LOCK

wget can not be used. Firefox is needed ( or internet explorer) and you have to let the script run on your system and answer the captcha

so if you are saving html links as tar.bz2 archives
( you also CAN NOT do that in windows. windows can not open a html file as a tarbz


you really have a issue with ALL basics ( windows and Apple also )
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 6, want to use bzip2 but it fails with bash: bzip2: No such file or directory nomad5000 Linux From Scratch 2 10-12-2009 09:58 PM
Error 1 to install bzip2 1.0.5 Ahava Linux - Software 2 08-25-2009 03:39 PM
Bzip2 and File Size Limits floog Linux - Software 3 02-27-2007 11:14 AM
bzip2: i got twice data intergrity error kpachopoulos Linux - General 3 11-30-2005 10:52 PM
kdelibs missing bzip2 file cain_eve Linux - Software 2 03-08-2005 04:48 PM


All times are GMT -5. The time now is 08:40 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration