Solved Userland mismatch has finally beaten me, or has it?

After several unsuccessful attempts to upgrade to 15.1, I have to admit that I've finally met my match. I'm not sure what I was doing wrong, but on each upgrade attempt either my Nvidia drivers would get overwritten (end up with a black screen instead of greeter) or I would encounter an error immediately after the boot menu, which would cause my system to reboot after a fifteen second delay. Well, I guess that I could have done a completely fresh reinstall of 15.1, but if I'm going to do that, then I may as well retreat back to an easier operating system.

I have another desktop sitting on the shelf that isn't doing anything, maybe I will install FreeBSD on that in the near future, but for now it looks like I just don't have the piloting skills to keep FreeBSD as my daily driver.

Code:
root@Asus:/ # pkg update
Updating FreeBSD-ports repository catalogue...
Fetching meta.conf: 100%    168 B   0.2kB/s    00:01   
Fetching data.pkg: 100%    9 MiB   9.5MB/s    00:01   
Processing entries:   0%
Newer FreeBSD version for package zita-jclient:
To ignore this error set IGNORE_OSVERSION=yes
- package: 1501000
- running userland: 1500068
Ignore the mismatch and continue? [y/N]:
 
Don't try to install the those packages, the stable ABI allows old packages to work on new versions of the base system, but not necessarily the other way around.

I don't have Nvidia, so I haven't really followed the problems with the driver, but it's probably been fixed by now, especially since 15.1 is the only supported release from 15-stable at the moment. I'd have another go at 15.1 IIWY.
 
Cedric62 did you install or convert to "pkgbase"?
A way to check is run "sudo freebsd-update fetch"
We also need to see the output of the command
freebsd-version -kru

Basically, 15.0 went EOL, so quarterly is now built against 15.1 and your output indicates that your userland is 15.0.

If all that is true:
before running pkg upgrade you need to update your base to 15.1 using either freebsd-update or the appropriate pkg commands for pkgbase (I don't know what they would be).
After you get your base up and running on 15.1 you can run pkg upgrade.
Until you are running base on 15.1 you should comment out the kld_list stuff for nvidia in rc.conf and/or loader.conf
 
After you get your base up and running on 15.1 you can run pkg upgrade.
Until you are running base on 15.1 you should comment out the kld_list stuff for nvidia in rc.conf and/or loader.conf
The OP is running on 15.0 to keep the Nvidia driver working.
 
The OP is running on 15.0 to keep the Nvidia driver working.
Main ports repo for 15.x is now built for 15.1 after the EoL of 15.0.
So at least graphics/nvidia-drm-*-kmod* on main (FreeBSD-ports) repo should no longer work for 15.0.
So no reason to stick with 15.0 now.
 
I know nothing about Nvidia (or in general GUI) issues on FreeBSD, so not offering any opinions there.

... or I would encounter an error immediately after the boot menu, which would cause my system to reboot after a fifteen second delay.
If you told us what the error is, we might be able to help debug it.
 
These two bits highlight the problem, no?

Forcing install of new packages on EoL platform is almost by definition, wrong.

I maintain that if OP wants new nvidia pkg from quarterly, they need to update base to 15.1 first.
Yes, but disabling the Nvidia driver is something to be done as part of the base system update, not ahead of it.
 
Remove all old graphics drivers & userland , all Kmods with version 1500068 must be deleted

Upgrade Base to 15.1

using Repos Quarterly and Kmods_Quarterly_1


then install drm_kmod
Then Install nvidia-drm-kmod
Then install linux-nvidia-libs ,

All your Kmods need to be version 150100 or higher
 
Why are you updating packages if you want to upgrade to 15.1? Are you following directions from https://www.freebsd.org/releases/15.1R/upgrading/
?
I just put the error message to show that I was stuck on 15.0, and because of that I couldn't update my packages anymore. Yes, I tried following those instructions, but I guess that I must have been doing something wrong, because nothing I did resulted in a bootable system with a functional desktop afterwards.
 
Cedric62 did you install or convert to "pkgbase"?
A way to check is run "sudo freebsd-update fetch"
We also need to see the output of the command
freebsd-version -kru

Basically, 15.0 went EOL, so quarterly is now built against 15.1 and your output indicates that your userland is 15.0.

If all that is true:
before running pkg upgrade you need to update your base to 15.1 using either freebsd-update or the appropriate pkg commands for pkgbase (I don't know what they would be).
After you get your base up and running on 15.1 you can run pkg upgrade.
Until you are running base on 15.1 you should comment out the kld_list stuff for nvidia in rc.conf and/or loader.conf
It was installed as a package based system. Unfortunately I don't have the hard drive with FreeBSD installed on it inside my computer, so I cannot issue the command to tell you. But here is something I copied from fastfetch just before I shut it down. System: FreeBSD 15.0-RELEASE-p14
 
Remove all old graphics drivers & userland
A bit of correction to be more precise:
Remove all old graphics drivers & [COLOR=rgb(184, 49, 47)]their[/COLOR] userland [COLOR=rgb(184, 49, 47)]counterparts[/COLOR]

using Repos Quarterly and Kmods_Quarterly_1
For 15.1 (and 14.4), no need to use kmods repo, as main repo is built for oldest supported minor versions (currently 15.1 for 15.x and 14.4 for 14.x).

And avoid using kmods repo whenever possible would avoid breakage by mangled versions between kmods repo (for kmod parts) and main repo (for userland counterparts) caused by differences of build timing.
 
I've never used pkgbase (and even not freebsd-update for years as I'm on src upgrading), but possibly pkgbase upgrades kernel parts only first and upgrade base userland only after restarts.

If I recall correctly, freebsd-update did so.

This is to avoid unworkable system as (not always but) upgraded system libraries like libc requires new kernel running (requires added / modified functionalities in kernel to work sanely). Once libc becomes unworkable, any processes that are invoked after upgrade should crash.
 
The important thing to understand here is that Any installed DRM Graphics Drivers + Userland ( eg nvidia-driver package) installed for FreeBSD 15.0 is likely to cause errors or kernel panic if left inplace while the O/S is upgraded to 15.1 , as the O/S upgrade does not handle the graphics drivers.
do pkg delete of the drm-kmod packages and all nvidia-drm and nvidia-driver, nvidia-kmod packages,

Would also be beneficial to comment out any drm start commands from /boot/loader.conf and /etc/rc.conf and then REBOOT
before the O/S upgrade.


then do the O/S Upgrade from the VT console to 15.1

then reinstall drm-kmod nvidia-drm-kmod nvidia-setting linux.nvidia-libs and any other packages you use.

Reactivate Graphics startup configs in /boot/loader.conf and /etc/rc.conf : reboot again.

the finally upgrade all the applications.
 
removing drm stuff from /etc/rc.conf and /boot/loader.conf and rebooting into console mode (not a graphical envirionment) should be sufficient to prevent errors and kernel panics.

I just comment out lines in the two files so the values don't get lost.

In the past a meta port (like nvidia-driver) moves version: you pkg install nvidia-driver and it installed nvidia-driver-470, maintainer updates it now nvidia-driver points at nvidia-driver-580 which may not be compatible with your hardware.
Given the work done that may no longer be the case.

Once rebooted into console mode with none of the drm stuff loaded, yes, it's best to explicitly delete the existing packages, explicitly pkg install the new ones (even if they are the same name). You can also do pkg upgrade to catch everything else while in console mode, no need to add a reboot in there.
 
The important thing to understand here is that Any installed DRM Graphics Drivers + Userland ( eg nvidia-driver package) installed for FreeBSD 15.0 is likely to cause errors or kernel panic if left inplace while the O/S is upgraded to 15.1 , as the O/S upgrade does not handle the graphics drivers.
do pkg delete of the drm-kmod packages and all nvidia-drm and nvidia-driver, nvidia-kmod packages,

Would also be beneficial to comment out any drm start commands from /boot/loader.conf and /etc/rc.conf and then REBOOT
before the O/S upgrade.


then do the O/S Upgrade from the VT console to 15.1

then reinstall drm-kmod nvidia-drm-kmod nvidia-setting linux.nvidia-libs and any other packages you use.

Reactivate Graphics startup configs in /boot/loader.conf and /etc/rc.conf : reboot again.

the finally upgrade all the applications.
This covers outdated release / driver versions.

To focus on currently supported releases and driver versions, no need to edit /boot/loader.conf at least for NVIDIA GPUs alone and removing DRM/KMS stuff from /etc/rc.conf{_local} is sufficient if you follow currently suggested way in pkg-message.

This is because anything in /boot/loader.conf are for pre-defining configurations BEFORE any of driver kmods are loaded and doesn't trigger something to be loaded.

And more, now /boot/defaults/loader.conf has blocklist for GPU driver kmods (and WiFi driver kmods requiring LinuxKPI) NOT to be loaded via /boot/loader* unless intentionally overridden.
 
I recently updated 15.0, legacy nvidia, X11/Plasma to 15.1 devel drivers and Plasma on wayland.
Prior to update I removed all nvidia and drm packages, and commented out entries in kld_list and loader.conf. I updated the system via pkgbase, rebuilt nvidia-devel and appropriate drm stuff from ports, turned back on stuff in config files, and everything works as far as FreeBSD upgrade process is concerned.
 
Don't need all that. The packages in the FreeBSD-ports repositories are built for 15.1 now that 15.0 is EoL.
These could be wanted when the admin wants to switch from production variant to devel variant of NVIDIA drivers, as these are different ports (devel variant is one of the child / slave port of parent / maste port, which is production variant). And in case the GPU used is no longer supported by production variant and need to switch to latest legacy variant.
 
Don't need all that. The packages in the FreeBSD-ports repositories are built for 15.1 now that 15.0 is EoL.
Now in November -December until 15.2-Release this statement is mostly true . Unless the user has legacy graphics cards that need older drivers.
After 15.2-release the Quarterly REPO will be 15.1 and the Kmod_quarterly-2 REPO will be for 15.2.
this will imply that the Nvidia-Driver package will be for 15.1 and nvidia-kmod package will be for 15.2 , not a usable state.
This probably means that the end user need to configure the latetest repositories, before installing graphics.
We will see next week after 15.2 BETA1 ships I assume......
 
Well, no one throughout the entire history of the world has ever had the rear-end kicked in so thoroughly by an operating system upgrade, as I've my own kicked in recently. Yet, in spite of all the hair pulling and yelling, it now appears that FreeBSD and I may not yet be ready for a divorce, and maybe we can still work things out. I tried spending some time with some other operating systems, during the past week or so, but they all left me feeling cheap and hollow inside. In all seriousness now...

I think that I've come up with a plan that might get me out of the woods, and I would appreciate any feedback on the plan I've outlined below.

Code:
The steps I had posted here earlier did not work, so I removed them in order to avoid leading others down the wrong path.  The steps I posted at the end of this thread worked for me.
Any info greatly appreciated.
 
Last edited:
Back
Top