Exec: /sbin/ldconfig.real: not found / pkg: POST-INSTALL script failed ; errors while trying to install different type of packages.

Hello to everyone.

Recently while I'm using FreeBSD 13.1,I started to see some errors that are causing me troubles while I make the installation of different packages. You can see what happens below :

Code:
mario@marietto:/ # sudo pkg remove linux-nvidia-libs

Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
    linux-nvidia-libs: 510.60.02

Number of packages to be removed: 1

The operation will free 466 MiB.

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling linux-nvidia-libs-510.60.02...
[1/1] Deleting files for linux-nvidia-libs-510.60.02: 100%
exec: /sbin/ldconfig.real: not found
pkg: POST-DEINSTALL script failed

mario@marietto:/ # sudo pkg install linux-nvidia-libs

Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    linux-nvidia-libs: 510.60.02

Number of packages to be installed: 1

The process will require 466 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing linux-nvidia-libs-510.60.02...
[1/1] Extracting linux-nvidia-libs-510.60.02: 100%

exec: /sbin/ldconfig.real: not found
pkg: POST-INSTALL script failed

as I repeat,it happens with different packages. Yesterday I tried to reinstall xfce and I saw it. Today I saw it with the package "linux-nvidia-libs". At the moment neither Xfce is working properly nor the linux-nvidia-libs,so I think that the cause is given by those errors.
 
ldconfig.real?

Looks like a system in the middle of some transition. Are you sure the last system update completed all the way?
 
I'm not sure,because sometime I see that error and the package installed works,sometime I see that error and the package is not be installed.
 
What does ls -l /sbin/ldconfig* show? Anything in /etc/make.conf?
 
ldconfig.real is a linux thing
the post install script calls it for whatever
Code:
    "post-deinstall" : "if ! /usr/sbin/service ldconfig restart >/dev/null; then
                if [ -z \"${INSTALL_AS_USER}\" ]; then
                        exit 1
                fi
        fi
/compat/linux/sbin/ldconfig",
      "post-install" : "if ! /usr/sbin/service ldconfig restart >/dev/null; then
                if [ -z \"${INSTALL_AS_USER}\" ]; then
                        exit 1
                fi
        fi
/compat/linux/sbin/ldconfig"
 
Back
Top