AW: pkgbase + migrate to FreeBSD15/amd64
Date: Fri, 10 Oct 2025 08:56:40 UTC
Hi Manfred,
i got curious and tried it myself in a vm.
I do not get the same error as you (probably because i am using a root shell, no doas.
Here are my markdown notes:
# pkgbase upgrade on ufs system
Installed vm with uefi, gpt, ufs freebsd 14.3 disc1
```
root@freebsd-ufs:~ # freebsd-version -kru
14.3-RELEASE
14.3-RELEASE
14.3-RELEASE
```
pkgbasify
```
fetch https://github.com/FreeBSDFoundation/pkgbasify/raw/refs/heads/main/pkgbasify.lua
chmod +x pkgbasify.lua
./pkgbasify.lua
shutdown -r now
```
check version after pkgbasifying:
```
root@freebsd-ufs:~ # freebsd-version -kru
14.3-RELEASE-p4
14.3-RELEASE-p4
14.3-RELEASE-p4
```
modify FreeBSD-base.conf
```
root@freebsd-ufs:~ # cat /usr/local/etc/pkg/repos/FreeBSD-base.conf
FreeBSD-base: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
```
install vim an tmux, because i like them:
```
pkg install vim tmux -y
```
At this stage i shut the vm down and created an snapshot "pkgbasify" so i could go back in case something goes wrong.
upgrade like described in mail:
```
env ABI="FreeBSD:15:amd64" pkg update -f -r FreeBSD-base
env ABI="FreeBSD:15:amd64" pkg upgrade -r FreeBSD-base
```
when upgrading it tells me, that it will remove pkg, but i go on to get the error.
While installing i get "Child process pid=894 terminated abnormally: Segmentation fault".
trying again:
```
root@freebsd-ufs:~ # env ABI="FreeBSD:15:amd64" pkg upgrade -r FreeBSD-base
ld-elf.so.1: Shared object "libcrypto.so.35" not found, required by "pkg"
```
trying it with pkg-static gets me the segfault too.
so lets try locking pkg
```
pkg-static lock pkg
env ABI="FreeBSD:15:amd64" pkg-static upgrade -r FreeBSD-base
```
seems like it worked
```
root@freebsd-ufs:~ # freebsd-version -kru
15.0-ALPHA5
14.3-RELEASE-p4
15.0-ALPHA5
```
so i will try rebooting
unlock pkg and update packages
```
pkg-static unlock pkg
pkg update
pkg upgrade
```
this seems to be working.
I am happy to hear if that helped you too.
Have a great day
Lukas
________________________________
From: Manfred Koch <md-koch@t-online.de>
Sent: Thursday, October 9, 2025 10:16 PM
To: Lukas Engelhardt <lukas.engelhardt@gmx.de>
Subject: Re: pkgbase + migrate to FreeBSD15/amd64
Hi Lukas,
I use the ufs filesystem. The pkgbasify has led me to
pkg update -r FreebBSD-base
pkg upgrade -r FreeBSD-base
Till then all is good. Then the error:
ld-elf.so.1: Shared object "libutil.so.10" not found required by doas
I will try with pkg lock pkg. If this doesn't work,
probably a fresh install.
Thanks
Manfred
On 10/9/25 21:25, Lukas Engelhardt wrote:
Hey, sounds like you are upgrading from 14 to 15, which does not work out of the box as far as I know.
You can lock pkg with 'pkg lock pkg' before upgrading to 15.
I hope you have created an boot environment before the upgrade (or can use the pre pkgbasify boot environment).
Hope that helps.
Lukas
Am 9. Okt. 2025, um 21:00, Manfred Koch <md-koch@t-online.de<mailto:md-koch@t-online.de>> schrieb:
Hi,
I am new with pkgbase and have tried with pkgbasify.lua
to get it.
pkg update -r FreebBSD-base
pkg upgrade -r FreeBSD-base
That performed.
But when I make
env ABI="FreeBSD:15:amd64" pkg update -f -r FreeBSD-base
env ABI="FreeBSD:15:amd64" pkg upgrade -r FreeBSD-base
After pkg update -r FreebBSD-base I get:
ld-elf.so.1: Shared object "libutil.so.10" not found required by doas
Any Ideas how one could fix that.
Manfred