2 "ELF interpreter /libexec/ld-elf.so.1 not found, error 2" complaints during "pkg-static install -U -rFreeBSD-base -g 'FreeBSD-*'" in a chroot

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 26 Jul 2025 22:01:57 UTC
Also reported later below: "pkg-static: Cannot runscript POST-INSTALL:No such file or directory"

Note: The below was after doing a -F beforhand. Also it was
after: pkg-static install -U -rFreeBSD-base -g 'FreeBSD-src*'
The context was a an armv7 chroot directory tree.

# pkg-static install -U -rFreeBSD-base -g 'FreeBSD-*'
Checking integrity... done (2 conflicting)
  - FreeBSD-kernel-generic-mmccam-14.snap20250726083016 [FreeBSD-base] conflicts with FreeBSD-kernel-generic-14.snap20250726083016 [FreeBSD-base] on /boot/dtb/am335x-bone.dtb
  - FreeBSD-kernel-generic-mmccam-14.snap20250726083016 [FreeBSD-base] conflicts with FreeBSD-kernel-generic-14.snap20250630143608 [installed] on /boot/dtb/am335x-bone.dtb
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
The following 345 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	FreeBSD-libyaml: 14.snap20250726083016 [FreeBSD-base]
	FreeBSD-libyaml-dbg: 14.snap20250726083016 [FreeBSD-base]
	FreeBSD-libyaml-dev: 14.snap20250726083016 [FreeBSD-base]

Installed packages to be UPGRADED:
	FreeBSD-acct: 14.snap20250630143608 -> 14.snap20250726083016 [FreeBSD-base]
. . .
	FreeBSD-zoneinfo: 14.snap20250630143608 -> 14.snap20250726083016 [FreeBSD-base]

Number of packages to be installed: 3
Number of packages to be upgraded: 342

The process will require 5 MiB more space.

Proceed with this action? [y/N]: y
[1/641] Deinstalling FreeBSD-acct-dbg-14.snap20250630143608...
. . .
[339/641] Upgrading FreeBSD-runtime from 14.snap20250630143608 to 14.snap20250726083016...
[339/641] Extracting FreeBSD-runtime-14.snap20250726083016: 100%
ELF interpreter /libexec/ld-elf.so.1 not found, error 2
[340/641] Upgrading FreeBSD-ssh from 14.snap20250630143608 to 14.snap20250726083016...
[340/641] Extracting FreeBSD-ssh-14.snap20250726083016: 100%
[341/641] Upgrading FreeBSD-syscons-data from 14.snap20250630143608 to 14.snap20250726083016...
. . .
[370/641] Installing FreeBSD-certctl-14.snap20250726083016...
[370/641] Extracting FreeBSD-certctl-14.snap20250726083016: 100%
ELF interpreter /libexec/ld-elf.so.1 not found, error 2
[371/641] Installing FreeBSD-certctl-man-14.snap20250726083016...
[371/641] Extracting FreeBSD-certctl-man-14.snap20250726083016: 100%
. . .

Is something out of order so that /libexec/ld-elf.so.1 is not present
when needed?


Also, for aarch64's boot update it twice reported:

pkg-static: Cannot runscript POST-INSTALL:No such file or directory

As below but after I'd already installed and rebooted into the
new kernel and had done a -F :

# pkg-static install -U -rFreeBSD-base -g 'FreeBSD-*'
Checking integrity... done (1 conflicting)
  - FreeBSD-kernel-generic-mmccam-14.snap20250726083810 [FreeBSD-base] conflicts with FreeBSD-kernel-generic-14.snap20250726083810 [installed] on /boot/dtb/allwinner/sun50i-a64-nanopi-a64.dtb
Checking integrity... done (0 conflicting)
The following 512 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	FreeBSD-kernel-generic-mmccam: 14.snap20250726083810 [FreeBSD-base]
	FreeBSD-libyaml: 14.snap20250726083810 [FreeBSD-base]
	FreeBSD-libyaml-dbg: 14.snap20250726083810 [FreeBSD-base]
	FreeBSD-libyaml-dbg-lib32: 14.snap20250726083810 [FreeBSD-base]
	FreeBSD-libyaml-dev: 14.snap20250726083810 [FreeBSD-base]
	FreeBSD-libyaml-dev-lib32: 14.snap20250726083810 [FreeBSD-base]
	FreeBSD-libyaml-lib32: 14.snap20250726083810 [FreeBSD-base]

Installed packages to be UPGRADED:
	FreeBSD-acct: 14.snap20250630144426 -> 14.snap20250726083810 [FreeBSD-base]
. . .
	FreeBSD-zoneinfo: 14.snap20250630144426 -> 14.snap20250726083810 [FreeBSD-base]

Installed packages to be REMOVED:
	FreeBSD-kernel-generic: 14.snap20250726083810

Number of packages to be removed: 1
Number of packages to be installed: 7
Number of packages to be upgraded: 504

The process will require 5 MiB more space.

Proceed with this action? [y/N]: y
[1/983] Deinstalling FreeBSD-acct-dbg-14.snap20250630144426...
. . .
[483/983] Installing FreeBSD-kernel-generic-mmccam-14.snap20250726083810...
[483/983] Extracting FreeBSD-kernel-generic-mmccam-14.snap20250726083810: 100%
pkg-static: Cannot runscript POST-INSTALL:No such file or directory
[484/983] Upgrading FreeBSD-lib9p from 14.snap20250630144426 to 14.snap20250726083810...
[484/983] Extracting FreeBSD-lib9p-14.snap20250726083810: 100%
. . .
[872/983] Installing FreeBSD-certctl-14.snap20250726083810...
[872/983] Extracting FreeBSD-certctl-14.snap20250726083810: 100%
pkg-static: Cannot runscript POST-INSTALL:No such file or directory
[873/983] Installing FreeBSD-certctl-man-14.snap20250726083810...
[873/983] Extracting FreeBSD-certctl-man-14.snap20250726083810: 100%
. . .

===
Mark Millard
marklmi at yahoo.com