Upgrading packages (fail)

Ronald F. Guilmette rfg at tristatelogic.com
Wed Sep 29 00:25:18 UTC 2021


I have been remiss in not keeping my FreeBSD system fully up to date.

I've just now tried to correct that via the following commands and actions:

   freebsd-update fetch
   freebsd-update install
   pkg upgrade
   (power cycle / reboot)

All seems to have gone mostly smoothly, however there are two things that
seem to have gone sideways and I'm utterly perplexed by both.

The first is that something in the log file I made while doing the above
steps suggests to me that I should have ended up with 12.2-RELEASE-p10
but uname -a is still telling me that I am running 12.2-RELEASE-p7.

So what did I do wrong?

The second and moere troubling issue is that after the above steps I was
left with at least two packages that simply would not work, apparently
because of some (non-)compatability issue relating to some things having
the following names:

    libicui18n.so.68
    libicuuc.so.68

Firstly, there was Firefox, which complained as follows (and then died):

    Shared object "libicui18n.so.68" not found, required by "libxul.so"

Second there was Postfix which complained (and then died) thusly:

   ld-elf.so.1: Shared object "libicuuc.so.68" not found, required by "sendmail"

I see that, because I did "pkg upgrade", I now have the .69 versions of the
relevant libraries, rather than what I had before, i.e. the .68 versions of
these libraries.  I get that.  What I don't get is why the command
"pkg upgrade" failed to update my firefox and my postfix, as was obviously
required.

Again, my question is simple:  What did I do wrong?

After this I simply did pkg upgrades on firefox and postfix and not everything
seems to be running fine again, but I remain mystified.  What oher installed
packages are now also broken that I just haven't found out about yet?  And
more to the point, how can I get all those properly upgraded?

The FreeBSD Handbook, section 24.2.3.2 seems to be telling me that -might-
need to do this?  But do I really?  This seems rather extreme.

    pkg-static upgrade -f

Note that I have upgraded *neither* to a whole new release of FreeBSD itself,
nor even to a new point release of FreeBSD itself.  If I had done, then it
would make some sense that I would have to update literally EVERY installed
package on my system, but I haven't.

So what command should I use to update just those installed packages, and
*only* and *all* of those packages that need to be updated, no more and no
less?


Regards,
rfg


More information about the freebsd-questions mailing list