You are here: Home / Blog / posts / Pixelworkers of CAES DO / pkg_add failing to get or fetch a package

pkg_add failing to get or fetch a package

by randles — published Jun 23, 2011 02:15 PM, last modified Jan 28, 2014 02:54 PM
On our FreeBSD servers pkg_add was failing every time and this is how we fixed it

Trish's latest blog post all about awesome skinning and git was amazing; however she was having problems with pkg_add -r git, FreeBSD 7.1 was looking fore new packages in a non existent directory on

when she ran the command

pgk_add -r git
  • pkg_add - this is the command to add a package
  • -r - the flag to check the interweb for the package if there is no local copy
  • git - the name of the package we want to add

the output would be

# pkg_add -r git
Error: FTP Unable to get File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch '' by URL

The url is wrong and it should be checking in We need to set the value of the system's package site to the correct url. Here is the command to do just that:


That is all folks! I hope this helps!