1. Use the, pkg lock –show, command to identify all of the locked packages on system.
2. Use the, pkg unlock -y, command to unlock each of the above locked packages identified in step one. You must repeat the unlock command for each and every locked package listed by the command in step one in order for the rest of the process to work.
Example: pkg unlock -y nvidia-settings
3. Reboot and open a new terminal. Enter the below command to identify all of the Nvidia packages on the system.
Example: pkg info | grep nvidia
4. Use the, pkg delete -y, command to delete each and every package listed by the pkg info command in step three.
Example: pkg delete -y nvidia-settings
5. Edit /etc/rc.conf and place a # mark in front of the below line to comment it out.
Example: # kld_list="nvidia-modeset nvidia-drm cuse fusefs"
6. Reboot, and login as root and enter the below commands.
pkg upgrade -r FreeBSD-base
(above to ensure health of current package state)
pkg -oABI=FreeBSD:15:$(uname -p) -oOSVERSION=1501000 upgrade -r FreeBSD-base
(upgrade base system)
pkg upgrade -r FreeBSD-ports-kmods
(upgrade third‑party kernel modules. At this point had to adjust name server in resolv.conf, in order to overcome "srv" error. Commented out old name server and replaced it with, nameserver 1.1.1.1
, and nameserver 8.8.8.8. Was then able to continue.)
find /etc /usr/local/etc -name '*.pkgnew' -ls
(scan for configuration file update conflicts that require manual updates)
7. Mount the efi partition and update boot loader.
mount_msdosfs /dev/ada0p1 /boot/efi
(mount the efi partition. Received an error stating device was busy. Continued to next step with no problems.)
cp /boot/loader.efi /boot/efi/efi/freebsd/loader.efi
cp /boot/loader.efi /boot/efi/efi/boot/bootx64.efi
(upgrade the boot loader)
8. Rebuild legacy graphics and reboot with below commands.
pkg bootstrap -f
(re-bootstrap the package management system)
pkg upgrade -y
(bring installed packages up to date)
pkg install -y drm-66-kmod x11/nvidia-driver-580
pkg install -y nvidia-drm-66-kmod-580
pkg install -y linux-nvidia-libs-580
(above reinstall Nvidia driver. Entered each line separately.)
nvidia-xconfig
(modify /etc/X11/xorg.conf. No longer seems to exist.)
9. Remove the # symbol from the below line within /etc/rc.conf.
Example: kld_list="nvidia-modeset nvidia-drm cuse fusefs"
10. Reboot the machine, if everything goes well, then the lightdm greeter should return.
11. Log in and issue the below command to display kern release date.
sysctl -n kern.osreldate
After upgrade the number displayed is now, 1501000.