Thursday, December 07, 2023

Re: pkg_add - error while reading header / read short file / gzheader truncated

I see the same with multiple installs - Started with 7.4. No
modification to default installurl.

It is amazing - For 5 years, I never considered that pkg_add(1) could
fail (and it didn't)! Updating my install scripts to try until the
last package add, with -l option, is confirmed. A little concerned
that a package could be partially installed / marked manual and not
work (I think this has happened and I restarted from scratch).


On Thu, 2023-12-07 at 00:07 -0800, Joe B wrote:
> Hello Misc,
>
> I am configuring a couple of laptops for my kids, i had installed 70
> with
> i3 and gcompris in them, its been a while since the last update so i
> decided to make a fresh install.
>
> So I installed 74 in both of them, used the autoinstall so the
> process was
> straightforward as always, rebooted, hw_update, syspatch, everything
> as
> expected.
>
> The problem comes when trying to install a package, i am trying just
> to of
> them: feh and gcompris, in both laptops, and i get the following
> errors,
> they are several since i do a few tries and then the problem goes and
> comes
> at different packages
>
> pkg_add: Ustar [package name, it is different every try, meaning
> lcms2-2.15.tgz, gstreamer, libass-] [?]: Error while reading header
> https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/lame-3.100p1.tgz
> :
> Read short file
>
> My configuration are:
> 1 laptop, re0, trying pkg_add feh
> 1 laptop, iwn0, trying pkg_add gcompris
>
> both with the same results, maybe i should try in another LAN, but
> could it
> be a problem with the CDN server ?
>
> Thank you for your time,
>
> --  Manuel Solis
>
> > >
>
> Hello,
>
> I'm new to openBSD about 3 days old. and I ran into the same issue as
> you. I would
>
> pkg_add something and I kept getting the header message. someone on
> IRC helped me
>
> Simple. change the cdn to another mirror
>
> look at https://www.openbsd.org/faq/faq15.html#Mirror
>
> Basically You find a mirror probably ftp like I did go to vim or nano
> /etc/installurl
>
> delete the cdn add another mirror and re-run the pkg_add you might
> need to pkg_delete
>
> the partial and then re-run. pkg_add After all that you might need
> pkg_add -u to see if the new mirror
>
> fixes all the other partials
>
>
> Hope this helps
>
>
> ~ Joe B

No comments:

Post a Comment