Solved Adding packages in a FreeNAS Jail

Hi All,

Very new to FreeBSD. I have setup a FreeNAS box which works very well, and I want to learn more about FreeBSD by playing around in a FreeNAS jail.

I am having an issue with installing packages.
I have initially done a pkg update ; pkg upgrade which says everything is up to date.
However, when I go to install any package, I get a package not found error.

For example I try to install nano in the jail and I get:
Code:
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest/All/nano-2.2.6.txz: Not Found
If I go to the repo, I see that there is a newer package installed. Why does the update/upgrade not pick up the new versions?

This happens on any package, I try to install.
Is there a package setup that I need to do on FreeNAS before this all works?
 
Something is seriously out of date on your end. The nano package is at version 2.4.3. So 2.2.6 can't be found, because it doesn't exist any more.

Did you try pkg update -f and pkg upgrade?
 
I tried the -f option, and this is what I got:
Code:
Updating repository catalogue
digests.txz  100% 2108KB 191.6KB/s 297.7KB/s  00:11   
packagesite.txz  100% 5452KB 287.0KB/s 442.0KB/s  00:19   
pkg: package field incomplete: comment
Incremental update completed, 24812 packages processed:
21236 packages updated, 2286 removed and 3576 added.
pkg: Unable to find catalogs
 
Ok, here it is:
Code:
Version  : 1.2.7_2
PACKAGESITE  :
PKG_DBDIR  : /var/db/pkg
PKG_CACHEDIR  : /var/cache/pkg
PORTSDIR  : /usr/ports
PUBKEY  :
HANDLE_RC_SCRIPTS  : no
ASSUME_ALWAYS_YES  : no
REPOS_DIR  : [
  /etc/pkg/,
  /usr/local/etc/pkg/repos/,
]
PLIST_KEYWORDS_DIR  :
SYSLOG  : yes
AUTODEPS  : yes
ABI  : freebsd:9:x86:64
DEVELOPER_MODE  : no
PORTAUDIT_SITE  : http://portaudit.FreeBSD.org/auditfile.tbz
VULNXML_SITE  : http://www.vuxml.org/freebsd/vuln.xml.bz2
MIRROR_TYPE  : SRV
FETCH_RETRY  : 3
PKG_PLUGINS_DIR  : /usr/local/lib/pkg/
PKG_ENABLE_PLUGINS  : yes
PLUGINS  : [
]
DEBUG_SCRIPTS  : no
PLUGINS_CONF_DIR  : /usr/local/etc/pkg/
PERMISSIVE  : no
REPO_AUTOUPDATE  : yes
NAMESERVER  :
EVENT_PIPE  :
FETCH_TIMEOUT  : 30
UNSET_TIMESTAMP  : no
SSH_RESTRICT_DIR  :
PKG_SSH_ARGS  :
PKG_ENV  : {
}
DISABLE_MTREE  : no
DEBUG_LEVEL  : 0
ALIAS  : {
}

Repositories:
  FreeBSD: {
  url  : "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest",
  enabled  : yes,
  mirror_type  : "SRV"
  }
 
Are you using FreeNAS 9.10? 9.3 was based on FreeBSD 9.3, while 9.10 is based on FreeBSD 10.3. So you might need to change the "9" in FreeBSD.conf to "10".
 
Back
Top