Posts Tagged ‘pkg_add’


When you trying to instal pkg_add -r nano you see:

pkg_add -r nano
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-current/Latest/vim.tbz: 
File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-current/Latest/vim.tbz:' by URL

This should help you:

Open ~/.cshrc and write at end of file:
setenv PACKAGESITE "ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/"

and save it, and use: source ~/.cshrc