It does indeed look like you have a corrupted, probably truncated, registry file. You can probably solve it with
pkg> registry remove General
pkg> registry add
It does indeed look like you have a corrupted, probably truncated, registry file. You can probably solve it with
pkg> registry remove General
pkg> registry add