Description of problem: When removing the docbook-dtds package, I'm getting a scriptlet error: Erasing : docbook-dtds-1.0-79.el9.noarch 1/3 Running scriptlet: docbook-dtds-1.0-79.el9.noarch 1/3 Failed to remove entry from /etc/sgml/catalog Erasing : sgml-common-0.6.3-58.el9.noarch 2/3 Erasing : xml-common-0.6.3-58.el9.noarch 3/3 This started appearing recently (was not present in RHEL-9.0.0-20220210.0, fails in RHEL-9.0.0-20220215.4, despite no docbook-dtds version change). Maybe it's a result of removing some docbook-* packages from AppStream between the two composes: docbook-style-dsssl-1.79-33.el9 docbook-utils-0.6.14-54.el9 docbook-utils-pdf-0.6.14-54.el9 though this removal might be unrelated. Looking at the RPM scriptlets, I'm not seeing any obvious and the error message isn't exactly verbose either, so I'm leaving it up to you to investigate. Version-Release number of selected component (if applicable): docbook-dtds-1.0-79.el9
Thanks for report. I believe this error occurs if the package is the last one which uses /etc/sgml/catalog - IOW, if you still have more such packages installed, error message will not occur upon uninstall of docbook-dtds. I have seen similar report in the past, not sure, how to fix it (probably some more complicated scriptlet). Docbook-style-dsssl rpm uses the /etc/sgml/catalog file too. so its removal from AppStream probably revealed this harmless error message.
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.