I recently installed FreeNAS-11.1-U2 on a new server without any problems. This was a new, bare-metal installation on freshly-wiped drives. This was not an upgrade. The installation completed successfully.
Using the FreeNAS GUI, I set up networking (IP address and default gateway) and the DNS servers. I can ping and resolve hosts on the Internet with no problems, including pkg.freebsd.org.
I read through the excellent FreeNAS 11 User Guide (http://doc.freenas.org/11/freenas.html), and I know that I can update the system using the FreeNAS GUI following the instructions in section "5.8. Update" of the User Guide.
I tried updating FreeNAS using the GUI "Shell" and the "pkg update" command, but got the following error:
I know that my networking settings and DNS servers are working correctly, so I suspected that the "pkg update" command failed because the following files and/or directories referenced in the command output were missing or did not exist:
* /var/db/pkg/repo-local.sqlite
* /usr/ports/packages/meta.txz
* /usr/ports/packages/packagesite.txz
The /var/db/pkg directory exists, but the repo-local.sqlite file does not exist. There are 2 files in /var/db/pkg: local.meta and local.sqlite.
The /usr/ports/packages directory exists, but it is empty, there are no files there.
I suspect this is normal for FreeNAS, and that the inability to update or install software on FreeNAS using the console, GUI Shell, or SSH session was planned, so as to keep FreeNAS working properly by not allowing users to possibly break it by modifying any package dependencies.
So my questions are:
1. Is FreeNAS set up to only allow updates through the FreeNAS GUI, or am I missing something with the updates with the console, GUI Shell, or SSH?
2. Is it possible to install packages on the base FreeNAS system, alongside, but not over the packages already there (as opposed to using Jails)?
In reference to question # 2 above, I can install different versions of packages in RHEL/CentOS without disturbing the "golden master" versions of the same packages already included in that distribution/version. I was wondering if the same applies to FreeNAS or FreeBSD.
Thank you for the awesome software and community you have here!
Using the FreeNAS GUI, I set up networking (IP address and default gateway) and the DNS servers. I can ping and resolve hosts on the Internet with no problems, including pkg.freebsd.org.
I read through the excellent FreeNAS 11 User Guide (http://doc.freenas.org/11/freenas.html), and I know that I can update the system using the FreeNAS GUI following the instructions in section "5.8. Update" of the User Guide.
I tried updating FreeNAS using the GUI "Shell" and the "pkg update" command, but got the following error:
Code:
[root@freenas ~]# pkg update -f Updating local repository catalogue... pkg: Repository local load error: access repo file(/var/db/pkg/repo-local.sqlite ) failed: No such file or directory pkg: file:///usr/ports/packages/meta.txz: No such file or directory repository local has no meta file, using default settings pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory Unable to update repository local Error updating repositories! [root@freenas ~]#
I know that my networking settings and DNS servers are working correctly, so I suspected that the "pkg update" command failed because the following files and/or directories referenced in the command output were missing or did not exist:
* /var/db/pkg/repo-local.sqlite
* /usr/ports/packages/meta.txz
* /usr/ports/packages/packagesite.txz
The /var/db/pkg directory exists, but the repo-local.sqlite file does not exist. There are 2 files in /var/db/pkg: local.meta and local.sqlite.
The /usr/ports/packages directory exists, but it is empty, there are no files there.
I suspect this is normal for FreeNAS, and that the inability to update or install software on FreeNAS using the console, GUI Shell, or SSH session was planned, so as to keep FreeNAS working properly by not allowing users to possibly break it by modifying any package dependencies.
So my questions are:
1. Is FreeNAS set up to only allow updates through the FreeNAS GUI, or am I missing something with the updates with the console, GUI Shell, or SSH?
2. Is it possible to install packages on the base FreeNAS system, alongside, but not over the packages already there (as opposed to using Jails)?
In reference to question # 2 above, I can install different versions of packages in RHEL/CentOS without disturbing the "golden master" versions of the same packages already included in that distribution/version. I was wondering if the same applies to FreeNAS or FreeBSD.
Thank you for the awesome software and community you have here!
Last edited: