The pkg_add/ftp/fetch pain
- From: "Helmut Schneider" <jumper99@xxxxxx>
- Date: Wed, 18 Apr 2007 12:50:00 +0200
OK, pkg_add is odd. It never worked as expected but mostly someone finds a way around.
I use an OpenBSD4.0 and vsftpd on a FreeBSD6.2. I just would like to update some packages as I recently upgraded from 3.9. Here is what I tried:
# set | grep PKG_PATH
PKG_PATH=ftp://192.168.1.70/pub/OpenBSD/4.0/packages/i386
#
# pkg_add -ui bzip2-1.0.3
Error from ftp://192.168.1.70/pub/OpenBSD/4.0/packages/i386/:
ftp: -: short write
421 Service not available, remote server has closed connection.
Temporary error, sleeping 5 seconds
^C
#
# ftp ftp://192.168.1.70/pub/OpenBSD/4.0/packages/i386/bzip2-1.0.4.tgz
[...]
local: bzip2-1.0.4.tgz remote: bzip2-1.0.4.tgz
229 Entering Extended Passive Mode (|||9479|)
150 Opening BINARY mode data connection for bzip2-1.0.4.tgz (113012 bytes).
[...]
226 File send OK.
113012 bytes received in 0.67 seconds (163.58 KB/s)
221 Goodbye.
#
Obviously communication is successful, so where is the problem?!
So what, let's use wget:
# FETCH_CMD="/usr/local/bin/wget" pkg_add -ui bzip2-1.0.3
Candidates for updating bzip2-1.0.3 ->
Looking for updates: complete
Cannot find updates for bzip2-1.0.3
Proceed? [y/N] N
#
<SIC>
Final solution: Download each single package and install locally:
# pkg_add -ri /usr/ports/packages/i386/bzip2-1.0.4.tgz
bzip2-1.0.4 (extracting): complete
bzip2-1.0.3 (deleting): complete
bzip2-1.0.4 (installing): complete
Clean shared items: complete
#
Surely, there is a firewall between both hosts, but an ftp transfer is successful!
So my question: Is that pkg_add "thing" broken by design, is it ftp which should be banned from all systems, or is it a simple PEBKAC?
Apologies, but I am really depressed.
--
Please do not feed my mailbox, Swen still does his job well
.
- Follow-Ups:
- Re: The pkg_add/ftp/fetch pain
- From: Clever Monkey
- Re: The pkg_add/ftp/fetch pain
- From: Marc Espie
- Re: The pkg_add/ftp/fetch pain
- From: Andy Wingate
- Re: The pkg_add/ftp/fetch pain
- Prev by Date: Re: OpenBSD & dnsmasq issues
- Next by Date: Re: The pkg_add/ftp/fetch pain
- Previous by thread: X still vulnerable on 4.0
- Next by thread: Re: The pkg_add/ftp/fetch pain
- Index(es):
Relevant Pages
|