Upgrade to 14.0-RELEASE Issues and Workaround

I'm writing this post for no other reason to help others that may experience issues upgrading FreeBSD to version 14.0. If this is redundant, feel free to delete it.

I recently upgraded my laptop from 13.3-RELEASE-p2 to 14.0-RELEASE-p6 and experienced several issues performing the upgrade while in multi-user mode. One recurring issue was some form of package corruption which affected the file ../../source3/lib/interface.c which resulted in an infinite loop of an error message written to standard output after the first install and reboot. The terminal was essentially useless at this point and necessitated a hard shutdown and reboot to a former snapshot. I seem to recall /boot/modules/i915kms.ko also having a problem during installation, but honestly can't remember what the symptom was.

I worked around upgrade issues by performing the upgrade in single user mode and followed these steps:
  1. booted the system into single user mode
  2. mounted the file system
  3. disabled unnecessary packages in /etc/rc.conf
  4. restarted system services using service -r
  5. performed the OS upgrade and explicitly upgraded all packages prior to the execution of the 3rd install command.
Upon full completion of the upgrade, I re-enabled packages in /etc/rc.conf and rebooted into multi-user mode.

The tool beadm was quite handy for managing failed snapshots throughout this process.

Please don't use this post as detailed instructions on how to resolve your upgrade problems. I'm simply sharing the general process that worked for me. Hopefully this helps someone.

Screenshot from 2024-05-13 07-49-26.png
 
Did you update the OS before attempting the upgrade?



What was the command, exactly?

Third according to which guide (can you share the link)?

Thanks
Hi Cath,

Yes, I did update the OS, as well as packages, before attempting the OS upgrade; the system was fully up-to-date for that version (13.3).

I used freebsd-update upgrade -r 14.0-RELEASE to upgrade the OS.
 
Quesion:
Are hyou running ZFS for your root file system? If so, you can upgrade into a new boot environment, including all packages which makes it easy to have clean rollback.
 
Thanks, the question about which guide is partly because the FreeBSD Handbook miscounts things …
When I used the FreeBSD Handbook as a guide it did not account for the package upgrades that had to happen prior to the final installation. I searched for others experiencing similar upgrade issues and found a post (don't have the link) that addressed the issue regarding the need to upgrade packages.
 
Back
Top