pkg update Version Mismatch: userland 1401000, package 1402000

Hello Everyone,

This is first post as I could not find any answers to solve my situation.

I had installed FreeBSD 14.1 with X to explore FreeBSD. I used to login once in a while and update packages.
However, this is not frequent and nor regular as my primary driver OS is not FreeBSD.

I am getting "Ignore the mismatch and continute? [y/N]:" message when I run
Code:
$ pkg update

Newer FreeBSD version for package zycore-c:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1402000
- running kernel: 1401000
Ignore the mismatch and continue? [y/N]: n

Output of common commands in such situation:
Code:
$ uname -a
FreeBSD hostname 14.1-RELEASE-p7 FreeBSD 14.1-RELEASE-p7 GENERIC amd64

Code:
$ uname -UK
1401000 1401000


Code:
$ freebsd-version -kru
14.1-RELEASE-p7
14.1-RELEASE-p7
14.1-RELEASE-p8

Please let me know if you need any more information to help me.

Thanks and regards,
Adam
 
Thank you SirDice.

However, I am trying to figure out how to fix the problem of version mismatch I am getting during pkg update.

Should I just go ahead and do freebsd-update -r 14.3-RELEASE upgrade?

Wouldn't that cause mismatch of version but with different versuon numbers?
 
As far as I know:

If your OS version is lower than what the package got compiled for, you can not run it.

If your OS version is above than what the package got compiled for, you can run it (Except kernel modules).

I think you can just go and upgrade since you are going to do a "minor release" upgrade.

As 14.1 is end of life since for a while, packages are being built for 14.2.
 
However, I am trying to figure out how to fix the problem of version mismatch I am getting during pkg update.
The issue is directly related to the version of FreeBSD you have vs. the version those packages have been built for. It's telling you your system is too old.

Wouldn't that cause mismatch of version but with different versuon numbers?
Nope. There's backwards compatibly. Packages for older versions (with a few exceptions) run fine on newer versions of FreeBSD, but packages built for new versions will fail on an older version of FreeBSD.
 
The simple explanation is that the FreeBSD package repository that used to contain packages for FreeBSD 14.1 now contains packages for FreeBSD 14.2 because FreeBSD 14.1 has reached its end of life and is no longer supported.

Just upgrade your system to a supported version like 14.2 or 14.3 and the problem will go away. It's preferable to upgrade to 14.3 for the reason SirDice mentioned. FreeBSD 14.3 can run packages built for 14.2 without any problems or version mismatch warnings.
 
Back
Top