Ed jensen 2007-09-22 16:33:57
I’ve been installing a lot of packages with FreeBSD lately, and I’m
encountering a persistent problem. I’ll run pkg_add which will
happily do its work, but it often terminates with “Broken pipe”.
Here’s an example:
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/All/sclient-0.140_1.tbz… Done.
I’ll re-run the pkg_add and it might stop with “Broken pipe”
elsewhere, or it might run to completion. The result is that I often
have to run pkg_add a bunch of times hoping that, this time, it won’t
die with “Broken pipe”.
Can anyone help me out with what might be going wrong here?
Helmut schneid 2007-09-28 05:22:26
Could be a bad internet connection.
Jpd 2007-09-28 05:23:51
pkg_add uses fetch(1) to get the packages, and if fetch gives up and
closes its end of the pipe, well, it breaks. Why fetch gives up is
another matter, and for you to find out.
As a simple workaround, you can get the packages (and all the packages
they depend upon) manually before feeding the package files to pkg_add.
j p d (at) d s b (dot) t u d e l f t (dot) n l .
This message was originally posted on Usenet in plain text.
Any other representation, additions, or changes do not have my
consent and may be a violation of international copyright law.
Ed jensen 2007-10-07 22:23:30
Thanks, that seems to explain it. I’ve always found my Internet
connection extremely reliable, but of course, there’s a lot going on
between my computer and the servers from which the packages are
Is there any way to configure the system to be more forgiving? i.e.,
Retry any given fetch X times, or for Y minutes, before giving up?
Sounds like good advice. Thanks again!