Solved FreeBSD 13.1 to 13.2 upgrade problems

Hi, I tried to upgrade FreeBSD 13.1 to 13.2 using this guide: FreeBSD 13.2-RELEASE Installation Instructions.
But the steps were not done correctly and now my mouse does not work and the current version of my system is FreeBSD 13.1-RELEASE-p7 (based on sysutils/neofetch).

Now these are the errors I get after running each command:

# freebsd-update fetch
Code:
The following files are affected by updates. No changes have
been downloaded, however, because the files have been modified
locally:
/etc/mtree/BSD.usr.dist
/var/db/etcupdate/current/etc/mtree/BSD.usr.dist
/var/db/etcupdate/log
/var/db/mergemaster.mtree
(END)

# freebsd-update install
Code:
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.

# usr/sbin/freebsd-update fetch
Code:
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 13.1-RELEASE from update2.freebsd.org... done.
Fetching metadata index... 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:
/etc/mtree/BSD.usr.dist
/var/db/etcupdate/current/etc/mtree/BSD.usr.dist
/var/db/etcupdate/log
/var/db/mergemaster.mtree
(END)

# freebsd-update upgrade -r 13.2-RELEASE
Code:
The following components of FreeBSD seem to be installed:
kernel/generic world/base

The following components of FreeBSD do not seem to be installed:
kernel/generic-dbg world/base-dbg world/lib32 world/lib32-dbg

Does this look reasonable (y/n)? y
Fetching metadata signature for 13.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.
Fetching files from 13.1-RELEASE for merging... done.
Preparing to download files... done.
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory

Attempting to automatically merge changes in files... done.

The following file could not be merged automatically: /etc/profile
Press Enter to edit this file in vi and resolve the conflicts
manually...

/var/db/freebsd-update/merge/new//etc/profile: unmodified: line 1

More about my system:

uname -mrs
FreeBSD 13.1-RELEASE-p6 amd64

Sorry if there are any mistakes, I typed most of the text with my phone.
Guys I really need help. Thanks.
 
Why did you stop the upgrade process to 13.2?

What happened when you went to edit /etc/profile?

You will run the upgrade step, then you'll have to run the kernal install step, reboot then userland install. But doesn't look like you finished the first step.

I can't see anything you've done so far would affect the mouse.
 
Why did you stop the upgrade process to 13.2?

What happened when you went to edit /etc/profile?

You will run the upgrade step, then you'll have to run the kernal install step, reboot then userland install. But doesn't look like you finished the first step.

I can't see anything you've done so far would affect the mouse.
The same messages.

Nothing I exited it with :q

I did and I rebooted the system.

The mouse just stopped working after this operation and never works.
 
and the current version of my system is FreeBSD 13.1-RELEASE-p7
You haven't done the actual upgrade yet. A freebsd-update -r 13.2-RELEASE only downloads the patches and guides you through some merging of certain files. NOTHING is actually being changed at this point. That only happens when you start freebsd-update install (twice).
 
You are saying you had problems after upgrading to 13.2. But you haven't upgraded to 13.2 - you ran the upgrade command that got the latest files - it doesn't install or upgrade anything.

And then looks like you rebooted?

Did you do the
Code:
freebsd-update install
before the reboot?
 
You are saying you had problems after upgrading to 13.2. But you haven't upgraded to 13.2 - you ran the upgrade command that got the latest files - it doesn't install or upgrade anything.

And then looks like you rebooted?

Did you do the
Code:
freebsd-update install
before the reboot?
Yes I ran this command (I mentioned it in the text). Before upgrade I think FreeBSD version was FreeBSD 13.1-RELEASE-p1 and now is RELEASE-p7. Yes, I rebooted the system.
 
No, you upgraded (or typed the commands to do so) your 13.1 install.

You got the latest 13.1 kernel & userland & installed both (well ran the commands to do so) & then you got the latest 13.2 upgrade and did ... nothing.
 
From the page you referenced:

# freebsd-update upgrade -r 13.2-RELEASE
# freebsd-update install

The system must now be rebooted with the newly installed kernel before the non-kernel components are updated.

# shutdown -r now

After rebooting, freebsd-update(8) needs to be run again to install the new userland components:

# freebsd-update install

...

Finally, reboot into 13.2-RELEASE

# shutdown -r now
 
Thanks... I removed these files:

Code:
/etc/mtree/BSD.usr.dist
/var/db/etcupdate/current/etc/mtree/BSD.usr.dist
/var/db/etcupdate/log
/var/db/mergemaster.mtree
/etc/profile

It seems that the problem was the existence of these files and now everything is going well.
If I got a problem, I'll send a message.
 
The problem solved. I manually removed the files that prevented the update process and the update process was done well.

uname -a
FreeBSD FreeBSD 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64

Thanks for all replies.
 
Back
Top