Hello all--
I recently installed FreeBSD out of both need and a simple desire to understand Unix better. One problem that I seem unable to solve is getting pkg_add -r to work for me.
I've read over and over again in the cloud that my problem is related to ftp passive mode-- which I have attempted to remedy both by doing:
to toggle passive mode and:
to no general success...
The following is the output of verbose pkg_add:
I'd rather not have to port install every application I need...
I recently installed FreeBSD out of both need and a simple desire to understand Unix better. One problem that I seem unable to solve is getting pkg_add -r to work for me.
I've read over and over again in the cloud that my problem is related to ftp passive mode-- which I have attempted to remedy both by doing:
Code:
$ftp
$ftp>passive
to toggle passive mode and:
Code:
set FTP_PASSIVE_MODE=true //or//
set FTP_PASSIVE_MODE="YES"
to no general success...
The following is the output of verbose pkg_add:
Code:
$ sudo pkg_add -vr apache
scheme: [ftp]
user: []
password: []
host: [ftp.freebsd.org]
port: [0]
document: [/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/apache.tbz]
---> ftp.freebsd.org:21
looking up ftp.freebsd.org
connecting to ftp.freebsd.org:21
<<< 220 Welcome to freebsd.isc.org.
>>> USER anonymous
<<< 331 Please specify the password.
>>> PASS xxxxxx
<<< 230 Login successful.
>>> PWD
<<< 257 "/"
>>> CWD pub/FreeBSD/ports/i386/packages-8.0-release/Latest
<<< 250 Directory successfully changed.
>>> MODE S
<<< 200 Mode set to S.
>>> TYPE I
<<< 200 Switching to Binary mode.
binding data socket
>>> PORT 128,101,135,195,228,234
<<< 200 PORT command successful. Consider using PASV.
initiating transfer
>>> RETR apache.tbz
<<< 425 Failed to establish connection.
Error: Unable to get [url]ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/apache.tbz:[/url] Can't open data connection
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/apache.tbz' by URL
pkg_add: 1 package addition(s) failed
I'd rather not have to port install every application I need...