Problems upgrading to 14.2-RELEASE

Hellooo everyone,

I've been using FreeBSD as my main server for VM's and Jails in my homelab and also to learn how *BSD works, I came from Linux(Debian/Ubuntu) and Windows background.
But today as I tried to do some mantaince to the server and try to upgrade it I have been getting the following error:

sh:
The following files are affected by updates. No changes have
been downloaded, however, because the files have been modified
locally:
/var/db/locate.database

This was 4hr ago, I've looking at this forum, re-reading the manuals, chatting with some AI's to get some hints ... and nothing yet.
This were the steps I followed to get until there:
sh:
#freebsd-update fetch install

(truncate)


No updates needed to update system to 14.1-RELEASE-p8.

WARNING: FreeBSD 14.1-RELEASE-p7 HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Tue Apr  1 02:00:00 CEST 2025
will not have been corrected.
# freebsd-version -kru
14.1-RELEASE-p7
14.1-RELEASE-p7
14.1-RELEASE-p8
# uname -v
FreeBSD 14.1-RELEASE-p7 GENERIC


# freebsd-update -r 14.2-RELEASE upgrade

(truncate)

Fetching metadata signature for 14.2-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
The following files are affected by updates. No changes have
been downloaded, however, because the files have been modified
locally: <----- Here I get this error I've been unable to find a solution for.
/var/db/locate.database

After searching, reading and I think understanding, I've tried to delete the database and recreate it using this command:
sh:
rm /var/db/locate.database
sudo /usr/libexec/locate.updatedb
and
sudo /etc/periodic/weekly/310.locate

I had also problems with /etc/ssh/sshd_config but I solved them reading the forums, now when it diffs with the new version it's has the correct date.
Can you guide me out of this in order to upgrade the system? I'm doing something wrong?

Full logs at Pastbin here.

Thank you <3
 
And what happen when you run freebsd-update install ?

In short it will look like this:
Code:
freebsd-update -r 14.2 upgrade
freebsd-update install
shutdown -r now
freebsd-update install
pkg update
pkg upgrade
pkg autoremove
freebsd-update install
shutdown -r now
 
Code:
The following files are affected by updates. No changes have
been downloaded, however, because the files have been modified
locally:
/var/db/locate.database
It's safe to ignore this.
 
O.o, thanks it upgraded correctly with the above.
Code:
freebsd-version
14.2-RELEASE-p2

freebsd-version -kru
14.2-RELEASE-p1
14.2-RELEASE-p1
14.2-RELEASE-p2

The thread can be marked as solved, but I have a question, how I'm suppose to know that the warning above is safe to ignore?
 
how I'm suppose to know that the warning above is safe to ignore?
Experience.

Anyway, this issue crops up from time to time. I'm honestly not even sure why this file is included with an update. It's dynamically generated, so it shouldn't be included. The database itself is updated with a weekly periodic(8) job (/etc/periodic/weekly/310.locate).
 
Back
Top