Description of problem: After upgrading to libwbclient-4.18.3-100.el9.x86_64, I have this invalid symlink: bash-5.1$ ls -l /etc/alternatives/libwbclient.so.0.15-64 lrwxrwxrwx 1 root root 45 Jun 22 2022 /etc/alternatives/libwbclient.so.0.15-64 -> /usr/lib64/samba/wbclient/libwbclient.so.0.15 bash-5.1$ wc /etc/alternatives/libwbclient.so.0.15-64 wc: /etc/alternatives/libwbclient.so.0.15-64: No such file or directory Version-Release number of selected component (if applicable): libwbclient-4.18.3-100.el9.x86_64 How reproducible: Always Steps to Reproduce: 1. rpm -Uvh libwbclient-4.18.3-100.el9.x86_64.rpm 2. wc /etc/alternatives/libwbclient.so.0.15-64 3. Actual results: wc: /etc/alternatives/libwbclient.so.0.15-64: No such file or directory Expected results: File does not exist Additional info: I think the preuninstall scriptlet is broken. It says: bash-5.1$ rpm --scripts -q libwbclient preuninstall scriptlet (using /bin/sh): if [ $1 -eq 0 ]; then /usr/sbin/update-alternatives \ --remove \ libwbclient.so.0.16-64 \ /usr/lib64/samba/wbclient/libwbclient.so.0.16 fi /sbin/ldconfig posttrans scriptlet (using /bin/sh): # It has to be posttrans here to make sure all files of a previous version # without alternatives support are removed /usr/sbin/update-alternatives \ --install \ /usr/lib64/libwbclient.so.0.16 \ libwbclient.so.0.16-64 \ /usr/lib64/samba/wbclient/libwbclient.so.0.16 \ 10 I believe the [ $1 -eq 0 ] test means that the alternative is removed only on uninstall, so an upgrade to a new version leaves the dangling symlink behind. Regards, Andy
*** This bug has been marked as a duplicate of bug 2216712 ***