LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-22-2006, 08:19 PM   #1
primussucks
LQ Newbie
 
Registered: Jan 2006
Location: Pingree Grove, IL
Distribution: Mint
Posts: 21

Rep: Reputation: 0
tarball issues


ok well im having trouble, and when i say trouble i mean i cant at all, unpacking tarballs.

ive just reinstalled debian using the 2.6 kernal. prior to that, using the 2.4 kernal with debian i had no trouble unpacking tarballs.

with .tar.gz files and with .tar.bz2 files, i get and error saying that file is not a gzip or bzip file.

any idea what im doing wrong, ive tried all kinds of combinations of xzvf xvjf xvj everything i could find using google.

thanks in advance
 
Old 02-22-2006, 08:54 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Can you post the actual command that you've been running? With a tar.gz file, you'd normally run something like tar -zxpf filename.tar.gz and with a tar.bz2 you'd normally run something like tar -jxpf filename.tar.bz2
 
Old 02-23-2006, 09:15 AM   #3
primussucks
LQ Newbie
 
Registered: Jan 2006
Location: Pingree Grove, IL
Distribution: Mint
Posts: 21

Original Poster
Rep: Reputation: 0
what worked for me before was tar xzvf filename.tar.gz Im downloading themes from freshmeat, and thats the command it says to use on thier site so thats what i used. Ive never actually gotten a bz2 file to open but what i tried whats tar xvjf filename.tar.bz2.

what does the "-" in front of the "z" or "j" do? I tried to read through the tar man pages but it all looking like a strange language from a far off place.
 
Old 02-23-2006, 09:29 AM   #4
crAckZ
Member
 
Registered: Sep 2004
Location: LOUISVILLE KENTUCKY
Distribution: mandriva 2006
Posts: 155

Rep: Reputation: 30
Code:
-j, --bzip2                filter the archive through bzip2
      --old-archive, --portability
                             same as --format=v7
      --pax-option=keyword[[:]=value][,keyword[[:]=value], ...]
                             control pax keywords
      --posix                same as --format=posix
      --use-compress-program=PROG
                             filter through PROG (must accept -d)
  -V, --label=TEXT           create archive with volume name NAME. At
                             list/extract time, use TEXT as a globbing pattern
  -z, --gzip, --gunzip, --ungzip   filter the archive through gzip
  -Z, --compress, --uncompress   filter the archive through compress
the - lets it know that the next letter is a flag(how to act)
-j bzip2 ect ect
i dont know if it is any different but if i get stuck i try
tar --help
this will give me the options

Last edited by crAckZ; 02-23-2006 at 09:31 AM.
 
Old 02-23-2006, 09:47 AM   #5
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Are you sure you have bzip2 and gzip installed and on the path?
 
Old 02-23-2006, 07:49 PM   #6
primussucks
LQ Newbie
 
Registered: Jan 2006
Location: Pingree Grove, IL
Distribution: Mint
Posts: 21

Original Poster
Rep: Reputation: 0
I know they are both installed I tried to install them with apt-get and i already had them, but on the path? what does that mean? Ive heard that before but have no idea what it means
 
Old 02-23-2006, 07:55 PM   #7
primussucks
LQ Newbie
 
Registered: Jan 2006
Location: Pingree Grove, IL
Distribution: Mint
Posts: 21

Original Poster
Rep: Reputation: 0
ok so this is exactly what it says
tar -xzpf sth-default-1.2.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

on a side note, how do you copy and paste from a terminal window?
 
Old 02-23-2006, 08:03 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
On your path just means that if you type bzip2 or gzip you don't get a command not found error. In other words, the commands are in one of the directories returned by echo $PATH. Does the tar command work with other tar.gz files? It may be a problem with sth-default-1.2.tar.gz.

Lastly, to copy/paste from a terminal I click and drag with the mouse to copy the text. Depending on your setup, click the right mouse button or click the mouse wheel to paste the text.
 
Old 02-23-2006, 09:23 PM   #9
primussucks
LQ Newbie
 
Registered: Jan 2006
Location: Pingree Grove, IL
Distribution: Mint
Posts: 21

Original Poster
Rep: Reputation: 0
ryan@RyansBox:~$ gzip
gzip: compressed data not written to a terminal. Use -f to force compression.
For help, type: gzip -h
ryan@RyansBox:~$ bzip2
bzip2: I won't write compressed data to a terminal.
bzip2: For help, type: `bzip2 --help'.
ryan@RyansBox:~$

sweet, i got them in the path, and i can copy and paste, if only i could unpack a tarball
 
Old 02-23-2006, 09:43 PM   #10
primussucks
LQ Newbie
 
Registered: Jan 2006
Location: Pingree Grove, IL
Distribution: Mint
Posts: 21

Original Poster
Rep: Reputation: 0
Code:
ryan@RyansBox:~$ tar xzvf crystal-moz15-default-1.0.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 1846 bytes from crystal-moz15-default-1.0.tar.gz
tar: Error exit delayed from previous errors
ryan@RyansBox:~$
for fun i downloaded another tarball, same sort of outcome.
 
Old 02-23-2006, 10:13 PM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Does it correctly decompress if you just do:
Code:
gunzip sth-default-1.2.tar.gz
If it does, can you then do:
Code:
tar -xvf sth-default-1.2.tar
If it's not working for these files (but worked on others previously) then something strange may be happening when they're downloaded.

Are you downloading with FTP in binary mode or is it just coming down from a web page? If it's from a web page, can you post the URL and I'll try it from here?
 
Old 02-23-2006, 10:25 PM   #12
primussucks
LQ Newbie
 
Registered: Jan 2006
Location: Pingree Grove, IL
Distribution: Mint
Posts: 21

Original Poster
Rep: Reputation: 0
well when i tried gunzip on the sth file, it says
Code:
ryan@RyansBox:~$ gunzip sth-default-1.2.tar.gz

gunzip: sth-default-1.2.tar.gz: not in gzip format
ryan@RyansBox:~$ gunzip crystal-moz15-default-1.0.tar.gz
when i tried gunzip on the mozilla theme, it appeared to not do anything but when i typed "ls" it took the gz off the end of the file so its now filename.tar instead of filename.tar.gz

heres the link to one of the files
http://themes.freshmeat.net/projects/sth/
 
Old 02-23-2006, 10:36 PM   #13
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
That file fails for me too:
Code:
$ tar -zxpvf sth-default-1.2.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
Looks like they have a dud copy of the archive on freshmeat - although a stairway theme might cheer up my desktop too

Also, does tar xpvf crystal-moz15-default-1.0.tar work?

Last edited by gilead; 02-23-2006 at 10:37 PM.
 
Old 02-23-2006, 11:57 PM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Just for info, try the 'file' cmd.
eg
file sth-default-1.2.tar.gz

& post the result
 
Old 02-24-2006, 12:00 AM   #15
nguyennh
Member
 
Registered: Feb 2006
Location: Vietnam
Distribution: FC , RH , SuSE
Posts: 106

Rep: Reputation: 15
My suggestion is using an archive program on GUI (KDE or GNOME) to extract your tarball . If it's failed too , I think your tarball file is corrupt .
 
  


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
Prob's with Tarball Wavz Linux - Software 6 01-22-2007 07:36 AM
How to backup to a tarball majestic Linux - Newbie 5 08-16-2004 05:55 PM
After Tarball then what ? sevvy8 Linux - Newbie 2 03-29-2004 04:41 AM
tarball problem bmrtin Linux - Newbie 4 01-14-2004 08:19 AM
Tarball? HardcoreGamer Linux - Software 4 02-12-2003 03:26 PM


All times are GMT -5. The time now is 07:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration