Hi all. Another strange problem. I just did this procedure a couple of days ago and it worked fine, but now on a clean install of FreeNAS 11.2-U7 it's failing and I don't know why. I'm running FreeNAS virtualised in XCP-ng 8.0 and trying to install the xe-guest-utilities package, but it's failing.
I'm following this procedure (which has worked in a couple of other 11.2-U7 installations I've run in the last week or so). Toggle 'enabled' in /usr/local/etc/pkg/repos/FreeBSD.conf from 'no' to 'yes', toggle 'enabled' in /usr/local/etc/pkg/repos/local.conf from 'yes' to 'no', then run 'pkg install xe-guest-utilities'. However, when I do this I get the following error (with the debug flag enabled to get more verbose output):
If I try to run 'pkg -d update' I get the following error:
I don't really know how to interpret this error. Does 'pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2' mean my local file is corrupted, or is there a problem at the remote end? This is a fresh installation, I've literally done nothing else other than to set the local IP for the machine and add a default gateway and DNS server to install this package. Any input would be appreciated, thanks.
I'm following this procedure (which has worked in a couple of other 11.2-U7 installations I've run in the last week or so). Toggle 'enabled' in /usr/local/etc/pkg/repos/FreeBSD.conf from 'no' to 'yes', toggle 'enabled' in /usr/local/etc/pkg/repos/local.conf from 'yes' to 'no', then run 'pkg install xe-guest-utilities'. However, when I do this I get the following error (with the debug flag enabled to get more verbose output):
Code:
root@freenas[~]# pkg -d install xe-guest-utilities DBG(1)[7363]> pkg initialized Updating FreeBSD repository catalogue... DBG(1)[7363]> PkgRepo: verifying update for FreeBSD pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2 pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0 DBG(1)[7363]> PkgRepo: need forced update of FreeBSD DBG(1)[7363]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite' DBG(1)[7363]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/latest/meta.txz with opts "i" Fetching meta.txz: 100% 916 B 0.9kB/s 00:01 DBG(1)[7363]> PkgRepo: extracting meta of repo FreeBSD DBG(1)[7386]> PkgRepo: extracting signature of repo in a sandbox pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2 repository FreeBSD has no meta file, using default settings DBG(1)[7363]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/latest/packagesite.txz with opts "i" Fetching packagesite.txz: 100% 6 MiB 6.5MB/s 00:01 DBG(1)[7363]> PkgRepo: extracting packagesite.yaml of repo FreeBSD DBG(1)[7388]> PkgRepo: extracting signature of repo in a sandbox pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2 pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0 Unable to open created repository FreeBSD Unable to update repository FreeBSD Error updating repositories!
If I try to run 'pkg -d update' I get the following error:
Code:
root@freenas[~]# pkg -d update DBG(1)[7340]> pkg initialized Updating FreeBSD repository catalogue... DBG(1)[7340]> PkgRepo: verifying update for FreeBSD pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2 pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0 DBG(1)[7340]> PkgRepo: need forced update of FreeBSD DBG(1)[7340]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite' DBG(1)[7340]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/latest/meta.txz with opts "i" Fetching meta.txz: 100% 916 B 0.9kB/s 00:01 DBG(1)[7340]> PkgRepo: extracting meta of repo FreeBSD DBG(1)[7341]> PkgRepo: extracting signature of repo in a sandbox pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2 repository FreeBSD has no meta file, using default settings DBG(1)[7340]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/latest/packagesite.txz with opts "i" Fetching packagesite.txz: 100% 6 MiB 202.1kB/s 00:32 DBG(1)[7340]> PkgRepo: extracting packagesite.yaml of repo FreeBSD DBG(1)[7361]> PkgRepo: extracting signature of repo in a sandbox pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2 pkg: Repository FreeBSD load error: meta cannot be loaded No error: 0 Unable to open created repository FreeBSD Unable to update repository FreeBSD Error updating repositories!
I don't really know how to interpret this error. Does 'pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2' mean my local file is corrupted, or is there a problem at the remote end? This is a fresh installation, I've literally done nothing else other than to set the local IP for the machine and add a default gateway and DNS server to install this package. Any input would be appreciated, thanks.