Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2021 11:49:29 +0100
From:      Rainer Hurling <rhurlin@gwdg.de>
To:        Xavier Humbert <xavier@groumpf.org>
Cc:        <ports@FreeBSD.org>
Subject:   Re: Warning: Major OS version upgrade detected
Message-ID:  <c64bdc64-6ccd-454a-3d71-b3f74def1373@gwdg.de>
In-Reply-To: <386a03b7-2f24-e8b6-0042-ba7f7568c878@groumpf.org>
References:  <386a03b7-2f24-e8b6-0042-ba7f7568c878@groumpf.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 30.01.21 um 23:02 schrieb Xavier Humbert:
> Hi,
> 
> I was running 13-CURRENT, and as of 01/22 I switched to 13-STABLE
> 
> Now, when I run any ports/pkg command - I use only ports-, I got
> 
>> pkg-static: Warning: Major OS version upgrade detected.  Running "pkg
>> bootstrap -f" recommended
> No a big deal, I thought, but :
> 
>> [root@numenor ~]# pkg bootstrap -f
>> The package management tool is not yet installed on your system.
>> Do you want to fetch and install it now? [y/N]: y
>> Bootstrapping pkg from
>> pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest, please wait...
>> Verifying signature with trusted certificate
>> pkg.freebsd.org.2013102301... done
>> pkg-static: Warning: Major OS version upgrade detected.  Running "pkg
>> bootstrap -f" recommended
>> Installing pkg-1.16.2...
>> pkg-static: wrong architecture: FreeBSD:13:amd64 instead of
>> *FreeBSD:14:amd64*
>> package pkg is already installed, forced install
>> Extracting pkg-1.16.2: 100%
>> [root@numenor ~]# pkg check -Bd
>> pkg: Warning: Major OS version upgrade detected.  Running "pkg
>> bootstrap -f" recommended
> 
> The message is still there. I never had 14-CURRENT on this system.
> 
> Reinstalled ports-mgmt/pkg from source, didn't help

I had the exactly same error message.

It turns out, that in my /etc/pkg/FreeBSD.conf instead of '${ABI}' there
was a hardcoded '13' in the url entry. Probably I did a bad job last
time I 'repaired' that file after upgrading from 12.0-CURRENT to
13.0-CURRENT manually ;)

This is how it works for me:

#cat /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
}

HTH,
Rainer

> 
> Any help ?
> 
> Thanks,
> 
> Xavier
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c64bdc64-6ccd-454a-3d71-b3f74def1373>