LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-26-2015, 03:39 PM   #16
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918

something like this mite work:
Code:
wget --user=schneidz --password=h3ll0-w0rld --save-cookies cookies.txt --keep-session-cookies http://path.to/tarball.tar.gz
or depending on the sites authentication mechanism, this mite work:
Code:
wget --save-cookies cookies.txt \
     --post-data 'user=foo&password=bar' \
     http://server.com/auth.php

# Now grab the page or pages we care about.
wget --load-cookies cookies.txt \
     -p http://server.com/interesting/article.php
 
Old 09-18-2020, 02:37 AM   #17
viktorkh
LQ Newbie
 
Registered: Nov 2016
Posts: 1

Rep: Reputation: Disabled
probably file tar-chived without -j flag

tar -xvjf XpressConnect-x86.tar.bz2 >> Because the flag 'j' is used, tar command will call bzip2 to process the decompression.

Reported error explained
bzip2: (stdin) is not a bzip2 file. >> bzip2 reported to parent process (tar) that the received file to process is NOT bz2 format

tar: Child returned status 2 >> tar reports the error status received from bzip2 child process by exiting execution.
In man documentation, error status 2, means to indicate a "corrupt compressed file". As bzip2 did not recognized the format and reports it as 'corrupt'

tar: Error is not recoverable: exiting now >> According to message received from child, compressed file is not accepted for processing

Steps to fixing the issue:
1- verify the format of the compression
Code:
file XpressConnect-x86.tar.bz2
You probably will receive the result as below:
POSIX tar archive (GNU) - "Or whatever other format". Then correct it with the next step 2

2- Correct the extraction instruction, according the format revealed in previous step 1
Code:
tar -xvf XpressConnect-x86.tar.bz2

Last edited by viktorkh; 09-18-2020 at 09:20 AM. Reason: improved explanation & layout
 
  


Reply



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 08:58 PM
Error 1 to install bzip2 1.0.5 Ahava Linux - Software 2 08-25-2009 02:39 PM
Bzip2 and File Size Limits floog Linux - Software 3 02-27-2007 10:14 AM
bzip2: i got twice data intergrity error kpachopoulos Linux - General 3 11-30-2005 09:52 PM
kdelibs missing bzip2 file cain_eve Linux - Software 2 03-08-2005 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 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