Hi,
I was upgrading my system from freebsd 12.0-RELEASE-p10 to 12.1 but I made a big mistake.
Instead of "freebsd-update upgrade -r 12.1-RELEASE" I did "freebsd-update upgrade -r 12.0-RELEASE"
I also executed "freebsd-update install". From that moment the system was messed up.
Commands (gzip, tar, pkg, ....) didn't run anymore. Lots off errors : ld-elf.so.1: Shared object "libxxxx.so.x" not found. Shared objects did have a size of 0 bytes. Other errors as "bus error"
"pkg-static upgrade -f" did not fixed the problem.
So I copy /lib, /bin, /sbin, /usr/bin, /usr/sbin, /usr/lib and /usr/lib32 from another server (also freebsd12.0p10). This fixed the problem.
To be sure I rebooted the server. Running freebsd-version : 12.0-RELEASE-p13
I though everything was ok and I could do the upgrade to 12.1.
"freebsd-update upgrade -r 12.1-RELEASE "give new errors.
This is what I do:
I also received notifications for deleting files in /etc (auto_master, shells, all files in rc.d ...)
All the files containing the following line:
I have no clue why the files have 12.1 as version.
With other words the update/upgrade is broken.
Is there way to fix the upgrade or do I need to reinstall the OS ?
Thanks in advance
I was upgrading my system from freebsd 12.0-RELEASE-p10 to 12.1 but I made a big mistake.
Instead of "freebsd-update upgrade -r 12.1-RELEASE" I did "freebsd-update upgrade -r 12.0-RELEASE"
I also executed "freebsd-update install". From that moment the system was messed up.
Commands (gzip, tar, pkg, ....) didn't run anymore. Lots off errors : ld-elf.so.1: Shared object "libxxxx.so.x" not found. Shared objects did have a size of 0 bytes. Other errors as "bus error"
"pkg-static upgrade -f" did not fixed the problem.
So I copy /lib, /bin, /sbin, /usr/bin, /usr/sbin, /usr/lib and /usr/lib32 from another server (also freebsd12.0p10). This fixed the problem.
To be sure I rebooted the server. Running freebsd-version : 12.0-RELEASE-p13
I though everything was ok and I could do the upgrade to 12.1.
"freebsd-update upgrade -r 12.1-RELEASE "give new errors.
This is what I do:
Code:
# rm -rf /var/db/freebsd-update/*
# freebsd-update fetch (I also tried with the -F option)
Fetching public key from update1.freebsd.org... done.
Fetching metadata signature for 12.0-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
No updates needed to update system to 12.0-RELEASE-p13.
Code:
# freebsd-update install
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.
Code:
# freebsd-update upgrade -r 12.1-RELEASE
Fetching metadata signature for 12.0-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata files... done.
Inspecting system... done.
The following components of FreeBSD seem to be installed:
kernel/generic world/base world/doc world/lib32
The following components of FreeBSD do not seem to be installed:
kernel/generic-dbg world/base-dbg world/lib32-dbg
Does this look reasonable (y/n)? y
Applying patches... done.
Fetching 74 files... done.
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
....
All the files containing the following line:
Code:
# $FreeBSD: releng/12.1/usr.sbin/autofs/auto_master 337749 2018-08-14 13:52:08Z trasz $
With other words the update/upgrade is broken.
Is there way to fix the upgrade or do I need to reinstall the OS ?
Thanks in advance