DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th May 2011
player1 player1 is offline
New User
 
Join Date: May 2011
Posts: 6
Default pkg_add error ustar archive header

I am trying to install OpenBSD 4.9 on Microsoft Virtual PC (I will eventually install on a real computer if I can get this all working).

The installation goes fine, but when I try to add packages with pkg_add I get the following error:
Code:
Fatal error: Ustar: Not an ustar archive header
 at usr/libdata/per15/OpenBSD/Ustar.pm line 72
At first I had all packages from openbsd.org on a 12gb CD image mounted through Virtual PC. I could not install a single package, it always came up with the above error.

Then I removed the biggest packages and created a 4gb CD image, now I can install packages again.

The problem is I am still getting the error when installing some packages.

So far the only thing I have wanted to install is gnome (pkg_add gnome-session). It installs some of the required packages, but then can't install others. (due to the error above).

I'm just starting out with OpenBSD, so I'm not at all familiar with what to do.

Can somebody help ?
Reply With Quote
  #2   (View Single Post)  
Old 29th May 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

You could check if the file/archive is corrupted with the utility file(1)
Code:
$ file  /home/packages/rsync-3.0.7.tgz
/home/packages/rsync-3.0.7.tgz: gzip compressed data, from Unix
Then do a verbose test with tar(1)
Code:
$ tar tvzf xxxxxx.tgz
Alternatively you could set the PKG_PATH variable to a ftp mirror so you can just use pkg_add package_name

Code:
PKG_PATH=ftp://ftp.eu.openbsd.org/pub/OpenBSD/49/packages/i386/
export PKG_PATH
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 29th May 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

It's just a guess, of course, but it could be the choices you made when you create your CD/DVD images. While the CD9660 filesystem is an ISO standard, there are extensions needed for Windows, and extensions needed for Unix-like systems. They are different.

Windows uses "Joliet", and Unix-like systems use "Rock Ridge." Be sure to build your ISO images with Rock Ridge extensions, or they won't be usable.

See http://en.wikipedia.org/wiki/ISO_9660 for more details.
Reply With Quote
  #4   (View Single Post)  
Old 31st May 2011
player1 player1 is offline
New User
 
Join Date: May 2011
Posts: 6
Default

Okay, thanks for your help, I think it may have had something to do with the CD image format or otherwise with Virtual PC.

I ended up installing it properly (on a real computer) and added the packages from a mounted usb drive, everything's working now
Reply With Quote
  #5   (View Single Post)  
Old 31st May 2011
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by J65nko View Post
You could check if the file/archive is corrupted with the utility file(1)
Actually, file is not likely to tell you the file is corrupt. It only tries to guess the type of file it is based on a few magic numbers found at the start of the file. Any corruption outside of what it looks at will go unnoticed.

Quote:
Then do a verbose test with tar(1)
Actually, the t option to tar just does a listing; with the z flag it knows to un-gzip first, and so this is probably a decent pragmatic test.

A direct test of the compressed file can be done with gzip in test mode:

% gzip -tv foo.tgz

Of course this doesn't test the contained tar archive. You could also compare with an independent checksum.

Last edited by IdOp; 31st May 2011 at 04:25 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
freebsdforums.org archive ccc Off-Topic 11 7th March 2009 10:48 PM
Apache: problem with rewritten content-type header Malakim General software and network 2 3rd December 2008 07:51 PM
(Net|Open)BSD Make: implicit C header dependencies taylor_venable Programming 3 25th November 2008 10:32 AM
pkg_add error buba OpenBSD Packages and Ports 4 13th June 2008 03:29 PM
Missing header file(s) in source tree phatfish FreeBSD Installation and Upgrading 8 4th May 2008 08:40 PM


All times are GMT. The time now is 04:14 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick