Re: Conflicts with FreeBSD-runtime-15, FreeBSD-utilities-15

From: Chuck Tuffli <ctuffli_at_gmail.com>
Date: Thu, 06 Jun 2024 13:19:03 UTC
On Fri, May 24, 2024 at 5:43 PM Danilo G. Baio <dbaio@freebsd.org> wrote:
>
> Hi,
>
> FYI, I encountered this issue while upgrading my home backup box:
>
> Installing FreeBSD-cron-15.snap20240513063539...
> pkg: FreeBSD-cron-15.snap20240513063539 conflicts with FreeBSD-utilities-15.snap20240406204558 (installs files into the same place).  Problematic file: /etc/crontab
>
> root@x240: # pkg upgrade
> ld-elf.so.1: Shared object "libutil.so.9" not found, required by "pkg"
>
> The system completely broke because FreeBSD-runtime-15 had been removed beforehand.

I'm hitting this as well. Running pkg-static upgrade -r FreeBSD-base
doesn't get past the cron conflicts:

root@next:/ # pkg-static upgrade -r FreeBSD-base
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
Checking for upgrades (491 candidates): 100%
Processing candidates (491 candidates): 100%
Checking integrity... done (16 conflicting)
  - FreeBSD-cron-15.snap20240531150712 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on /etc/crontab
  - FreeBSD-cron-15.snap20240531150712 [FreeBSD-base] conflicts with
FreeBSD-runtime-15.snap20240408011138 [installed] on /etc/pam.d/cron
  - FreeBSD-pf-15.snap20240531150712 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/sbin/authpf
  - FreeBSD-tests-15.snap20240601150152 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/tests/atf_python/sys/__init__.py
  - FreeBSD-zfs-man-15.snap20240531130351 [FreeBSD-base] conflicts
with FreeBSD-utilities-man-15.snap20240407233856 [installed] on
/usr/share/man/man8/zfsbootcfg.8.gz
  - FreeBSD-hyperv-tools-15.snap20240531150712 [FreeBSD-base]
conflicts with FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/sbin/hv_kvp_daemon
  - FreeBSD-yp-15.snap20240531181300 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/share/examples/ypldap/ypldap.conf
  - FreeBSD-ipfw-15.snap20240531181300 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/share/examples/ipfw/change_rules.sh
  - FreeBSD-zfs-15.snap20240531220745 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on
/sbin/zfsbootcfg
  - FreeBSD-pf-man-15.snap20240516193155 [FreeBSD-base] conflicts with
FreeBSD-utilities-man-15.snap20240407233856 [installed] on
/usr/share/man/man8/authpf-noip.8.gz
  - FreeBSD-hast-15.snap20240531181300 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/share/examples/hast/ucarp.sh
  - FreeBSD-bhyve-15.snap20240531181300 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/share/examples/bhyve/vmrun.sh
  - FreeBSD-csh-15.snap20240531150712 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/share/examples/csh/dot.cshrc
  - FreeBSD-efi-tools-15.snap20240531181300 [FreeBSD-base] conflicts
with FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/share/examples/uefisign/uefikeys
  - FreeBSD-ppp-15.snap20240531150712 [FreeBSD-base] conflicts with
FreeBSD-utilities-15.snap20240408011138 [installed] on
/usr/share/examples/ppp/chap-auth
  - FreeBSD-runtime-man-15.snap20240601233406 [FreeBSD-base] conflicts
with FreeBSD-libcompat-man-15.snap20240125183519 [installed] on
/usr/share/man/man3/ftime.3.gz
Checking integrity... done (0 conflicting)
The following 495 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        FreeBSD-clibs-dev: 15.snap20240531201247 [FreeBSD-base]
        FreeBSD-cron: 15.snap20240531150712 [FreeBSD-base]
        FreeBSD-rc: 15.snap20240531181300 [FreeBSD-base]
        FreeBSD-utilities-dbg: 15.snap20240601162654 [FreeBSD-base]
...
Number of packages to be installed: 4
Number of packages to be upgraded: 491

The process will require 104 MiB more space.

Proceed with this action? [y/N]: y
[next] [1/495] Installing FreeBSD-cron-15.snap20240531150712...
pkg-static: FreeBSD-cron-15.snap20240531150712 conflicts with
FreeBSD-utilities-15.snap20240408011138 (installs files into the same
place).  Problematic file: /etc/crontab
root@next:/ #

Doing a pkg remove of utilities doesn't help as I then hit the
conflict with runtime:
...
Number of packages to be installed: 7
Number of packages to be upgraded: 488

The process will require 271 MiB more space.

Proceed with this action? [y/N]: y
[next] [1/495] Installing FreeBSD-cron-15.snap20240531150712...
pkg-static: FreeBSD-cron-15.snap20240531150712 conflicts with
FreeBSD-runtime-15.snap20240408011138 (installs files into the same
place).  Problematic file: /etc/pam.d/cron
root@next:/ #