Error while running package installation and post-install scripts"warning: /etc/profile created as /etc/profile.rpmnewwarning: /etc/sysconfig/clock created as /etc/sysconfig/clock.rpmnewwarning: /etc/sysconfig/proxy created as /etc/sysconfig/proxy.rpmnewerror: unpacking of archive failed on file /srv: cpio: File from package already exists as a directory in systemerror: filesystem-1.1-4.ph4.x86_64: install failed
18/07/2025 01:56:50 [ERROR] Failed with exit code 6502418/07/2025 01:56:50 [INFO] Update status: Running post-install scripts18/07/2025 01:56:50 [INFO] Running /opt/vmware/var/lib/vami/update/data/job/12/post_install '10.5.1.10593' '10.6.1.11753' 4Failed with status of 4 while installing version 10.6.1.11753VM version is still 10.5.1.1059318/07/2025 01:56:50 [ERROR] Failed with exit code 25618/07/2025 01:56:50 [INFO] Update status: Running VMware tools reconfiguration18/07/2025 01:56:50 [INFO] Running /opt/vmware/share/vami/vami_reconfigure_toolsvmware-toolbox-cmd is /bin/vmware-toolbox-cmdvmtoolsd wrapper not required on this VM with systemd.18/07/2025 01:56:50 [INFO] Update status: Done VMware tools reconfiguration18/07/2025 01:56:50 [INFO] Update status: Error while running package installation and post-install scripts18/07/2025 01:56:50 [ERROR] Failure: updatecli exiting abnormally18/07/2025 01:56:50 [INFO] Install Finished
VMware Cloud Director
This issue occurs when the srv path exists as a directory under the root partition instead of the expected symbolic link (symlink) to /var/srv on the VCD cell where the upgrade is failing.
Verify the srv directory structure:
ls -lrth //srv is incorrectly configured as a directory:drwxr-xr-x 13 root root 4.0K Apr 5 2023 vardrwxr-xr-x 3 root root 4.0K May 17 2023 homedrwxr-xr-x 4 root root 4.0K Nov 4 2023 optdrwxr-xr-x 3 root root 4.0K Mar 12 2024 srvdrwx------ 3 root root 4.0K Aug 22 2024 vasecuritydrwxr-xr-x 4 root root 1.0K Aug 22 2024 bootdrwxr-x--- 5 root root 4.0K Jul 18 11:36 rootdrwxrwxrwt 13 root root 320 Jul 18 11:58 tmp
srv as a symbolic link pointing to /var/srv, like this:drwxr-xr-x 13 root root 4.0K Apr 5 2023 vardrwxr-xr-x 3 root root 4.0K May 17 2023 homedrwxr-xr-x 4 root root 4.0K Nov 4 2023 optdrwx------ 3 root root 4.0K Aug 22 2024 vasecuritydrwxr-xr-x 4 root root 1.0K Aug 22 2024 bootdrwxr-x--- 5 root root 4.0K Jul 18 11:36 rootdrwxrwxrwt 13 root root 320 Jul 18 11:58 tmplrwxrwxrwx 1 root root 8 Jul 18 11:45 srv -> var/srv/
To resolve the issue:
cd /rm -rf srvln -s var/srv srv