On 03/03/14 09:01, Matthias Meyser wrote:> I have a fresh installed Freebsd machine
> 10.0-STABLE #1 r262685 with no connection to the internet.
>
> To install bind (with ironically left base) i need to bootstrap
> pkg. To do that I build pkg-1.2.6.txz by source on another machine.
> (same Freebsd Version)
>
> Then i put pkg-1.2.6.txz on the first machine and did a
>
> pkg add pkg-1.2.6.txz
>
> this gives "Signature for pkg not available."
>
> putting "SIGNATURE_TYPE: "none"" in
> /usr/local/etc/pkg.conf did NOT solve this issue.
Given you've no internet connectivity then this is probably what you
need: create a /usr/local/etc/pkg/repos/FreeBSD.conf containing
something like:
FreeBSD: {
enabled: no
}
That just switches off the default /etc/pkg/FreeBSD.conf
>
> "setenv SIGNATURE_TYPE none" worked.
>
> but now i get
>
> pkg-static: sqlite: no such table: main.packages
>
> Now I am lost.
pkg will automatically create the sqlite database schema it needs if it
doesn't already exist. I guess that somehow you've got a half-formed
schema -- enough to stop it automatically re-creating the whole thing,
but not enough to be usable.
Try moving aside /var/db/pkg/local.sqlite and then run something like
'pkg -vv' -- this should recreate local.sqlite
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1029 bytes
Desc: OpenPGP digital signature
URL:
<http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140303/c0716432/attachment.sig>