DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default OpenBSD 5.6 libreoffice: premature end of archive

I am not sure what is going on with the latest release but every time I try to install libreoffice with my PKG_PATH set to ftp.fr.openbsd.org, the installation fails with the message
Quote:
Fatal error: Ustar [http://ftp.fr.openbsd.org/pub/OpenBS...1.6.2p2v0.tgz][lib/libreoffice/share/extensions/dict-en/th_en_US_v2.idx]: Premature end of archive
Fatal error: Installation of libreoffice-4.1.6.2p2v0 failed, partial installation recorded as partial-libreoffice-4.1.6.2p2v-
This is my 3rd system I am installing 5.6 and it happens every time. All the other packages install without issue.

I can work around the problem by deleting the partial package in /var/db/pkg/partial* and downloading the package to my home directory and installing from the local directory.

I also tried changing ftp sites but it still fails. Any thoughts as to the problem?
Reply With Quote
  #2   (View Single Post)  
Old 6th November 2014
hitest's Avatar
hitest hitest is offline
Real Name: George Nielsen
VPN Cryptographer
 
Join Date: Sep 2008
Location: B.C., Canada
Posts: 374
Default

Quote:
Originally Posted by shep View Post
I also tried changing ftp sites but it still fails. Any thoughts as to the problem?
That is definitely weird. Maybe try a different site? I've got Libreoffice installed. It came in just fine on my mirror.

Code:
installpath=ftp://ftp3.usa.openbsd.org/pub/OpenBSD/5.6/packages/amd64/
__________________
hitest
Reply With Quote
  #3   (View Single Post)  
Old 6th November 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

Quote:
installpath=ftp://ftp3.usa.openbsd.org/pub/OpenBSD/5.6/packages/amd64/
I'm setting PKG_PATH in my home directory .profile using the syntax in FAQ15.

I have not seen anything about using "installpath" in place of "PKG_PATH" but I do miss announcements.

Last edited by shep; 6th November 2014 at 03:22 PM. Reason: correct BB code
Reply With Quote
  #4   (View Single Post)  
Old 6th November 2014
blackhole's Avatar
blackhole blackhole is offline
Spam Deminer
 
Join Date: Mar 2014
Posts: 320
Default

I'm pretty sure that if PKG_PATH is not set in the environment, the installpath in pkg.conf is used.

If you install/upgrade from an http mirror, rather than from an iso, I think the installpath gets set to a mirror at install time. I have a vague idea that this was also the case in 5.5 and 5.4 and possibly earlier.
Reply With Quote
  #5   (View Single Post)  
Old 6th November 2014
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,131
Default

My wild guess is that it memory or another resource is exhausted. You have one or multiple network connection(s) to the mirror and at the same time are untarring a 180 MB package file.

BTW I always set and export PKG_CACHE=/home/j65nko/packages. This will instruct pkg_add(1) to copy the retrieved packages in that directory. That way I can reuse them for another install.

Re: installpath
This was new to me too But it is mentioned in pkg_add(1).
__________________
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
  #6   (View Single Post)  
Old 6th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

The mention was added to the man page at 5.5.
Reply With Quote
  #7   (View Single Post)  
Old 6th November 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

I had been using custom partitioning for my disks and had trouble with Firefox core dumps. For this install I took the defaults resulting in

Code:
$ df -k
Filesystem          1K-blocks                Used               Avail                  Capacity             Mounted on
/dev/sd0a           1028878                84732              892704                9%                     /
/dev/sd0k           270354520            7865500           248971296           3%                     /home
/dev/sd0d           4125406               10                    3919126               0%                    /tmp
/dev/sd0f            2061054               1341188            616814                68%                   /usr
/dev/sd0g           1028878               195368             782068               20%                   /usr/X11R6
/dev/sd0h           10318462              3516022           6286518             36%                   /usr/local
/dev/sd0j            2061054                34278              1923724              2%                    /usr/obj
/dev/sd0i            2061054               824606             1133396              42%                   /usr/src
/dev/sd0e          12349790             16986               11715316             0%                     /var
Although I run a lightweight WM, I do utilize some heavy weight applications. Would a larger /tmp space be helpful?

Last edited by shep; 7th November 2014 at 01:59 AM. Reason: tabbing for clarity quote -> code per moderator
Reply With Quote
  #8   (View Single Post)  
Old 7th November 2014
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,131
Default

Keep in mind that when you first download the package, you don't have any problem, so I wonder whether a larger /tmp space would be helpful.

BTW you should use [code] and [/code] instead of [quote][/quote] because whitespace, this includes tabs, in a [quote] block are collapsed to a single space
__________________
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
  #9   (View Single Post)  
Old 9th November 2014
gso gso is offline
Port Guard
 
Join Date: Nov 2014
Posts: 35
Default

Installed fine here also.

What I am getting though is the following from M:Tier's openup script:

Code:
Error from http://ftp.fr.openbsd.org/pub/OpenBS...ffi-3.0.13.tgz
(23) Failed writing body
Error from http://ftp.fr.openbsd.org/pub/OpenBS...jl-2.0.4p1.tgz
(23) Failed writing body
Error from http://ftp.fr.openbsd.org/pub/OpenBS...utils-1.23.tgz
(23) Failed writing body
The same package files every time.

Not security updates so not an issue at the moment.

I should add also that I am using a custom pkg_add(1) FETCH_CMD (SOCKS5 proxy using curl), could be something to do with it.

[Update] It is the custom fetch command, throws the occasional 'fetch' out for some odd reason, haven't time to look into it at the moment:

Code:
#!/bin/sh

curl -s -x socks5h://127.0.0.1:1080 "${3}"

Last edited by gso; 15th November 2014 at 11:48 AM. Reason: Note on custom fetch
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
Security Oracle blocks security hole with quick, hot 'n' premature Java update J65nko News 1 5th February 2013 06:15 AM
Bug fix release LibreOffice 3.4.5 is out J65nko News 0 17th January 2012 10:54 PM
pkg_add error ustar archive header player1 OpenBSD Installation and Upgrading 4 31st May 2011 03:41 PM
LibreOffice RC2 now available J65nko News 0 28th December 2010 12:46 AM
freebsdforums.org archive ccc Off-Topic 11 7th March 2009 10:48 PM


All times are GMT. The time now is 02:31 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