Solved FreeBSD 12.1 Pre-release doesn't allow port or package installation

I recently upgraded a server to FreeBSD 12 stable. I should have known that with 12.1 so close to being officially released that stable would be 12.1 Pre-release. Now I can't install or upgrade any ports/packages. When I try I get the following......

make: "/usr/ports/Mk/bsd.port.mk" line 1189: UNAME_r (12.1-PRERELEASE) and OSVERSION (1103000) do not agree on major version number.

I wanted to include the OSVERSION in the /etc/make.conf as a work around, but I don't see the 12.1 pre-release OSVERSION number with the rest of them here...


Any ideas on a course of action here? Or do I just need to wait for September 20, 2019 when the official version will be launched?

I would appreciate any suggestions. Thanks.

Eric
 
Your OSVERSION is 11.3. How did you upgraded the system?

In other words you have a kernel and base versions mismatch. Did you followed THIS?

[EDIT]

Or do I just need to wait for September 20, 2019 when the official version will be launched?

The scheduled date to 12.1-RELEASE is 4 November 2019. There is not ever the first beta yet. :)
 
Yes. That is the procedure I followed to upgrade the system. So how do I work around this problem? Is there an OSVERSION for 12.1-PRERELEASE?
 
This is weird. It seems you were on 11.3 upgraded the kernel but not userland (buildworld/installworld). I think you should completely remove /usr/obj/usr, and start everything over again. Something is missing or you did something wrong.

If you look at the schedule I pointed previously there is no PRERELEASE (this is just a name when the code is freezed), and at this moment the 12.1 branch was not ever created. You need then to use STABLE if you don't want to keep on RELEASE (which in fact is RELENG if you want to get the security fixes).

The 12.1 OSVERSION will look like 1201000.

[EDIT]
Also, what make -C /usr/ports -V OSVERSION and freebsd-version -ku tells you?

[EDIT]

Just to clarify, there is no fixed OSVERSION for -STABLE or -CURRENT, it change quite often but by the Porter's Handbook should be now 1200518; however your problems apparently is your mismatch.

Btw, did you rebooted after the whole upgrade procedure? If not, you are running the old system yet.
 
You're right. It seems I neglected to install the world. Once I did that, everything worked. Thanks for all your help.
 
Back
Top