Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2008 20:31:11 +0100
From:      "Colin Brace" <cb@lim.nl>
To:        freebsd-questions@freebsd.org
Subject:   pkg_add: remote install (-r) broken
Message-ID:  <aec9371b0801161131k142b73ebh574b563a84cec2c8@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi all,

At some point after my original installation of v.7-BETA3 in late
November and a subsquent upgrade to BETA4 with Colin Percival's
freebsd-update, installing packages remotely with pkg_add on my system
broke. For example:

$ sudo pkg_add -vr rtorrent
scheme:   [ftp]
user:     []
password: []
host:     [ftp.freebsd.org]
port:     [0]
document: [/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz]
---> ftp.freebsd.org:21
looking up ftp.freebsd.org
connecting to ftp.freebsd.org:21
<<< 220 ftp.FreeBSD.org NcFTPd Server (licensed copy) ready.
>>> USER anonymous
<<< 331 Guest login ok, send your complete e-mail address as password.
>>> PASS colin@venus.lim.nl
<<< 230-You are user #181 of 1000 simultaneous users allowed.
<<< 230-
<<< 230 Logged in anonymously.
>>> PWD
<<< 257 "/" is cwd.
>>> CWD pub/FreeBSD/ports/i386/packages-7-current/Latest
<<< 250 "/pub/FreeBSD/ports/i386/packages-7-current/Latest" is new cwd.
>>> MODE S
<<< 200 Mode okay.
>>> TYPE I
<<< 200 Type okay.
binding data socket
>>> PORT 172,19,3,3,209,68
<<< 200 PORT command successful.
initiating transfer
>>> RETR rtorrent.tbz
<<< 550 Cannot connect to 78.27.2.208:53572 - Unknown error: 0.
Error: FTP Unable to get
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz:
File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch
'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz'
by URL
pkg_add: 1 package addition(s) failed

Now, I *know* the package and host are online; I can copy and paste
the URL from the screen to grab it with wget:

wget ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-current/Latest/rtorrent.tbz

This works.

What could be going wrong with add_pkg here?

As I indicate above, I am currently at 7.0-BETA4

Thanks.

-- 
  Colin Brace
  Amsterdam
  http://lim.nl



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?aec9371b0801161131k142b73ebh574b563a84cec2c8>