Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2025 11:23:32 +1000
From:      Tilde Joy <tilde@ultros.pro>
To:        freebsd-pkgbase@freebsd.org
Subject:   Re: HEADS-UP: pkgbase pkg upgrade breaks systems Re: after updating to latest, pkg base segfaults and leaves me unbootable
Message-ID:  <1a1f3edb-456e-4754-951f-2a0373a22099@ultros.pro>
In-Reply-To: <6d5b80be-b333-4ec3-9082-42d97fad52c8@madpilot.net>
References:  <DCA0D1E8-8D89-4B59-B44F-CD5C6F35C5A6@gushi.org> <582d802f-da93-415c-9dee-1f1f1beb1830@smeets.xyz> <6d5b80be-b333-4ec3-9082-42d97fad52c8@madpilot.net>

index | next in thread | previous in thread | raw e-mail

On 8/14/25 18:17, Guido Falsi wrote:

> Hi,
>
> I was also bitten by this. I'm sharing how I got past the issue in 
> case it could be useful to others.
>
> I recovered by rolling back to a previous ZFS snapshot using an USB 
> installation media. This can be a viable solution depending on FS 
> being used and availability of snapshots.
>
> Anyway, after taking the machine to a usable state I was able to 
> update past the tripping point by doing:
>
> pkg-static upgrade -r <base-repo> -g 'FreeBSD-runtime*' 
> 'FreeBSD-pkg-bootstrap*' 'FreeBSD-clibs*'
>
> (the bootstrap part is most probably not needed)
>
> this will tell you it wants to remove the pkg package, but will not do 
> so, since there is no '-f' option. After this proceed with a 
> `pkg-static -r <base-repo> upgrade`.
>
> Depending on how old the previous installation is you will need to 
> check for new packages to install, I was missing a bunch -dev and -man 
> ones, and some new ones.
>
> I then had to add this to libmap.conf (actually to 
> /usr/local/etc/libmap.d/upgrade.conf):
>
> libcrypto.so.30 libcrypto.so.35
> libutil.so.9 libutil.so.10
> libssl.so.30 libssl.so.35
>
>
> So old ports depending on old libraries still work. I'm keeping these 
> for a while, until I can perform a `pkg upgrade -f`
>
>
> Hope this can be helpful until the issue is solved.

thanks for this guido, this helped me out a lot,

in my case the first command still aborted with pkg trying to remove 
itself,
i had to run the arguments separately:

pkg-static upgrade -r FreeBSD-base -g 'FreeBSD-runtime*'
pkg-static upgrade -r FreeBSD-base -g 'FreeBSD-pkg-bootstrap*'
pkg-static upgrade -r FreeBSD-base -g 'FreeBSD-clibs*'

and these were the new packages i installed:

FreeBSD-bsdconfig
FreeBSD-gssd
FreeBSD-kerberos-kdc
FreeBSD-libmilter
FreeBSD-rip
FreeBSD-test

not sure if any of these were essential or not, can't hurt to have them 
i suppose,
but i'm finally updated to 15.0-PRERELEASE <3

tilde~



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1a1f3edb-456e-4754-951f-2a0373a22099>