opnsense / tools

OPNsense release engineering toolkit
https://opnsense.org/
BSD 2-Clause "Simplified" License
279 stars 206 forks source link

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

Closed HRTshazab closed 1 year ago

HRTshazab commented 1 year ago

I was trying to build image from the current opnsense stable version 23.1. Getting this error

`>>> Running build step: ports

Passing arguments: (none) Installed pkg version '1.19' does not match required version '1.18' *** Error code 1

Stop. make: stopped in /home/shazab/opnsense/tools` image

mimugmail commented 1 year ago

You need to install pkg 1.18 via ports

afteroot commented 1 year ago

@mimugmail could you please explain, how to do it ?

mimugmail commented 1 year ago

Not a good idea to warm up an old issue as the result might not fix your problems.

afteroot commented 1 year ago

But i have almost same error )

>>> Running build step: ports

Passing arguments: (none)
Installed pkg version '1.20' does not match required version '1.19'
*** Error code 1

So fix is,

/usr/ports/ports-mgmt/pkg
make reinstall

after that issue is solved

[root@build /usr/ports/ports-mgmt/pkg]# pkg --version
1.19.2
mimugmail commented 1 year ago

Yep, thats all :)