Error trying to update or install pkg

Baptiste Daroussin bapt at FreeBSD.org
Fri Feb 21 09:25:31 UTC 2020


On Fri, Feb 21, 2020 at 09:22:57AM +0000, Mark Raynsford via freebsd-pkg wrote:
> Hello!
> 
> After an update from FreeBSD 11.2 to 12.2, I'm running into the
> following:
> 
> $ sudo pkg-static install -f pkg
> pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
> Updating FreeBSD repository catalogue...
> pkg-static: repository meta has wrong version 2
> pkg-static: Repository FreeBSD load error: meta cannot be loaded No error: 0
> Fetching meta.txz: 100%    916 B   0.9kB/s    00:01    
> pkg-static: repository meta has wrong version 2
> repository FreeBSD has no meta file, using default settings
> Fetching packagesite.txz: 100%    6 MiB   3.2MB/s    00:02    
> pkg-static: repository meta has wrong version 2
> pkg-static: 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've actually tried completely removing /var/db/pkg and running the
> above, and I still seem to get the same error.
> 
> My /etc/pkg/FreeBSD.conf:
> 
> FreeBSD: {
>   url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
>   mirror_type: "srv",
>   signature_type: "fingerprints",
>   fingerprints: "/usr/share/keys/pkg",
>   enabled: yes
> }
> 
> Any ideas? I'm left unable to complete the "freebsd-update install"
> because I can't upgrade existing packages on the system.

pkg bootstrap -f will enforce to update to the latest pkg and fix the situation

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20200221/2d64b1b7/attachment.sig>


More information about the freebsd-pkg mailing list