Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2020 10:24:59 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Mark Raynsford <list+org.freebsd.pkg@io7m.com>
Cc:        freebsd-pkg@freebsd.org
Subject:   Re: Error trying to update or install pkg
Message-ID:  <20200221092459.ntqydidogjnrlkb3@ivaldir.net>
In-Reply-To: <20200221092257.100c41cf@sunflower.int.arc7.info>
References:  <20200221092257.100c41cf@sunflower.int.arc7.info>

next in thread | previous in thread | raw e-mail | index | archive | help

--pkcuuqz5hpatqd4f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Feb 21, 2020 at 09:22:57AM +0000, Mark Raynsford via freebsd-pkg wr=
ote:
> Hello!
>=20
> After an update from FreeBSD 11.2 to 12.2, I'm running into the
> following:
>=20
> $ sudo pkg-static install -f pkg
> pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-sta=
tic 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   =20
> 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   =20
> 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!
>=20
> I've actually tried completely removing /var/db/pkg and running the
> above, and I still seem to get the same error.
>=20
> My /etc/pkg/FreeBSD.conf:
>=20
> FreeBSD: {
>   url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
>   mirror_type: "srv",
>   signature_type: "fingerprints",
>   fingerprints: "/usr/share/keys/pkg",
>   enabled: yes
> }
>=20
> 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 situa=
tion

Best regards,
Bapt

--pkcuuqz5hpatqd4f
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAl5PoekACgkQY4mL3PG3
PlpmEg/+OfpThETInttty+brshpkGcN/6Ifk6ELNJQ5N13iGzOqlXbZq5kaS4vHX
3na4oer22/hj0buVBTuLC9igRU8faFPJOFl0piUFNGZyGYv3TZFTbLvYPXVcQclm
wnRHwrxqkgCTovQpZTGEzTMhxNktZhmlABPhBLpWJZntQZ/1eU7wE2RiCMZr+oVT
4P3dSfRsHE9cJfFvYBwksXaVZ7yNl7UiTBUYIqHRlXijuzp+RcmWEPN2Z8Y9ftOb
hx73uXbA0ihcnUBX4VZTh1g1eGbvs42B7YW0syrUC1nd40lyqy5U5R9e80uKdtWI
cXZE+IE8vfoD3m8a7z8AB4IWb1/0Ivk5mbzmL9prW9fOI960jBZa4z8PwItIRlPh
uHHzIPEKZ+BCHFo6gV7wzi0+ICMZMRnGcJ7+q/4j1GnOrlgfyhKAf6v9uPL2ovhW
zdKjYTHXf1j7Ax4ZGKtEtsRIcR//LlGNDWkkRXNxYLUe2ptHL1eHcavr5XOcEDog
0QGXx05Tt6TskOsxvU9DREZ4nse6ZrQNLrSHQlZRpRP+fgWAtWT5ffk7AYkjKPCh
qH9h5IS7EZMSFFIIwo/Tq4Sl6MRf96/fc+92FcVbkb7dpQeEkQsnsCQGT05oe3j7
5JsA9QqIHYy5RiC7+kkj3pOWnWkWuAFnpoVPyeZxZyuPK0Ggbo8=
=J2GE
-----END PGP SIGNATURE-----

--pkcuuqz5hpatqd4f--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200221092459.ntqydidogjnrlkb3>