Installed pkg version '1.19' does not match required version '1.18'

Started by bigchips, January 09, 2023, 05:29:49 PM

Previous topic - Next topic
Trying to set up a OpnSense development environment on a fresh install of FreeBSD 13.1 and when executing "make ports" I am getting the following message:

Installed pkg version '1.19' does not match required version '1.18'

What is the preferred way to resolve this?  I can't figure out where this dependency is coming from.

Thanks,
Brett

Hi Brett,

FreeBSD's pkg version has been known to introduce incompatibilities and bugs so we lag a bit behind it for safety reasons. Unfortunately when setting up a new build system the latest version from FreeBSD is automatically installed and that would introduce said issues and also interfere with the ability to build.

So nowadays we require you to install the pkg version supplied by our ports tree. In your build system that would be:

# cd /usr/ports/ports-mgmt/pkg
# make && make reinstall

Sometimes the database is damaged doing a downgrade, but I don't know if that is the case for 1.19 yet.


Cheers,
Franco

That got it going.  Huge thanks for the quick reply.  Really appreciate the efforts of everyone on this project!


Hi Franco,


I was trying to build a new 24.7 ISO as my whole lab is setup with 24.7. My previous build machine is stuck on make ports and when tried to rebuild a build environment, getting pkg error 22.2 and this above method doesnt work as freebsd nomore supporting 1.19, Please help what can be done here:

USER=root
>>> Running build step: ports
>>> Passing arguments: (none)
Installed pkg version '2.1' does not match required version '1.19'
To fix this please run 'make -C /usr/ports/ports-mgmt/pkg clean all reinstall'
*** Error code 1

Stop.
make: stopped in /usr/tools


root@build:/usr/ports/ports-mgmt/pkg # make && make reinstall
===> Building/installing portconfig as it is required for the config dialog
===>  Cleaning for portconfig-0.6.2
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make[3]: stopped in /usr/ports/ports-mgmt/portconfig
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/ports-mgmt/portconfig

===> Options unchanged
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.