PDA

View Full Version : Untar


Sector5
28-11-2002, 06:07
I must be dumb but I cannot untar your linux files. WTF is a .tar.tar file anyways? Is that a typo? I renamed it to just .tar but either way I get an error telling me it's not a tar archive...

Pretty user unfriendly if I cannot even get it to untar to install...

N. Werensteijn
28-11-2002, 14:49
used search yet?

Shame on you for downloading with ms Ie :)

Rename to tar.bz2 try again (tar -xjf ) or get bzip2

Sector5
28-11-2002, 18:17
LoL, yeh well, 90% of the world uses MSIE so maybe these guys should take that into consideration. I'm not a huge msft fan, I actually used to work for Red Hat, but I do all of my development work from a Win2k machine and I'll be damned if I'm ever going to use Netscrap for anything than testing site compatibility...

Oh yeh, I tried using wget and it didn't like the file redirect either...

Peter
29-11-2002, 02:01
Well,

a bit of topic in here, but mozilla is a quite nice browser - feature rich, fast, and open source (in which it easily beats M$ IE). With the programm I use most frequently and with so many differnt servers, I can't take the risk of user specific information being sent against my will anywhere.

pwk.linuxfan

N. Werensteijn
29-11-2002, 13:41
Well, somehow it is our fault. Other websites dont seem to have a problem with bz2 files. But when bz2 files are downloaded from teamspeak.org, ie seems to rename it to .tar.tar

I don't know why this is. Teamspeak.org is hosted on a debian machine with apache and php. If anyone might know what we should change in our config to solve this problem, your help would be greatly appreciated

Judas
29-11-2002, 16:17
About the download problem...

I am not all that familiar with apache webservers but this sounds like a problem with the mime-types

for some reason *.tar.bz2 doesnt seem to have an official mime-type. The following 2 types are both in use as far as i am informed.

application/x-tbz
or
application/x-bzip-compressed-tar

Maybe chaing the mimetype definition for *.tar.bz2 to either the first or the last might help?

Its a shot in the dark but well worth a try ;)

N. Werensteijn
30-11-2002, 20:10
i tried that a long time ago.. Maybe i did something wrong then. I'll try again.

anyway.. why are mozilla, wget and opera not affected?

Judas
01-12-2002, 14:42
About InternetExplorer and other Browsers...

Taken that it really is "only" a mime-type problem, the actual data sent by the server should be ok. Yet the browser itself decides, based on the received mime-type, what it is going to do with the data. I could immagine, that mozilla, wget and all the others simple know how to handel the mime-type sent by your webserver. IE is the only one messing with it because it either has a bug in his mime-type list or it simple doesen know what to do with the type you send... or even wors... it thinks that it knows what to do but messes it up afterwards.

Now that i come to think about the problem I remember having read something about an appache bug on debian which cause problems with tar.bz2 files... It was something about files containing either "gz" or "bz2" anywhere in the filename get treated as "gz" or "bz2" files.
On a recent search though, I couldnt find anymore information about that bug.. so it might have affected older versions only.