Suspecting a bug in tar commmand supplied in OSX Lion; can someone confirm?

oschrenk

macrumors newbie
Original poster
May 29, 2012
12
0
I'm trying to extract the ubuntu-12.04-alternate-i386.iso

Code:
	$ curl --output ubuntu-12.04-alternate-i386.iso -L http://releases.ubuntu.com/precise/ubuntu-12.04-alternate-i386.iso
	$ md5 -q ubuntu-12.04-alternate-i386.iso
	bcee4c03b704a9b62988505b7d8f3069
A quick look at https://help.ubuntu.com/community/UbuntuHashes verifies that the file isn't corrupt. So I try

Code:
	$ tar -xvf ubuntu-12.04-alternate-i386.iso
and nothing happens. Zero output. No files, nothing on stdout.

Weird. I check the version

Code:
	$ tar --version
	bsdtar 2.8.3 - libarchive 2.8.3
and see if it may have been updated. And indeed, libarchive has been updated to 3.0.4. homebrew doesn't support it directly, because its duplicating os behavior. So I created my own updated version of libarchive for 3.0.4. and submitted a pull request to the adamv/homebrew-dupes repository (which accepts duplicates). So:

Code:
	$ brew install https://raw.github.com/oschrenk/homebrew-dupes/edbc2b464d0bf4420508297418481178299f420a/libarchive.rb

	$ /usr/local/bin/bsdtar --version
	bsdtar 3.0.4 - libarchive 3.0.4
	$ /usr/local/bin/bsdtar -xvf ubuntu-12.04-alternate-i386.iso
And it works fine.

Can somebody confirm that system tar is not working with the given tar by downloading the file, checking its hash value and trying to extract the iso? Basically please run:

Code:
	$ curl --output ubuntu-12.04-alternate-i386.iso -L http://releases.ubuntu.com/precise/ubuntu-12.04-alternate-i386.iso
	$ md5 -q ubuntu-12.04-alternate-i386.iso
	$ tar --version
	$ tar -xvf ubuntu-12.04-alternate-i386.iso
and report if the file is being extracted.
 
Last edited:

plinden

macrumors 68040
Apr 8, 2004
3,968
3
@Mr. Retrofire

BSD tar has always supported extracting files from isos (GNU tar doesn't). It does in Snow Leopard (I just double checked). My Snow Leopard tar is version 2.6.2, Lion is 2.8.3.

tar doesn't work for doing this in Lion, as the OP said.
 
Comment

oschrenk

macrumors newbie
Original poster
May 29, 2012
12
0
Code:
    $ man tar
[...]
DESCRIPTION
     tar creates and manipulates streaming archive files.  This implementation
     can extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images
     and can create tar, pax, cpio, ar, and shar archives.
@plinden
Thanks. I'm opening a bug report at https://bugreport.apple.com/ but the'll probably will only update it when they ship Mountain Lion
 
Comment

swazzy

macrumors newbie
Dec 10, 2012
1
0
Mail won't send in outbox...

I've been experiencing this problem on and off for the better part of a year now. I wish I could tell you that I found the solution but apparently I haven't. I will say that those of you using a mail.com account can go to Safari (doesn't work well in Chrome) and log into icloud.com. You can lot into your account and "send" emails that way.

This problem has occured, as I said, several times over the past 7 or 8 months. Once, about 2 months ago I contacted Apple and a rep guided me through basically resetting up my .mac mail account. When he finished all was great.... until yesterday morning. It started screwing up again. I managed to somehow straighten it out again (as one reply indicated) but I don't know how I even did it other than it just started working again.

I'm running Snow Leopard 10.6.8 and had been considering upgrading to Lion until I've read everything that everyone has said about Lion.... now I don't think I want to go there yet.

I'm not with AT&T I'm with Time Warner but am still having this problem. When it occurs with my laptop, the problem also seems to be present on my office iMac that is located about 35 miles away but that's also Time Warner.

I hope someone finds a solution to this pain soon.
 
Comment

j.p.doherty

macrumors newbie
Aug 10, 2013
1
0
Download GNU tar and install it yourself, side-saddle with BSD tar

Download this:
http://ftp.gnu.org/gnu/tar/tar-1.26.tar.bz2

cd [location of download]
tar jxvf tar-1.26.tar.bz2

./configure --prefix=/usr --program-prefix=gnu
make
sudo make install

which gnutar
[should see /usr/bin/gnutar at this point...]

Now you have both GNU and BSD tar.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.