Symptoms
Updating system packages through Plesk fails on the RHEL 8.5 based distros (RHEL/CentOS/AlmaLinux)
'NoneType' object has no attribute 'run_sack'
The issue does not occur on the RHEL 8.4 based distributions.
Cause
Product issue PPPM-13304, fixed in release 18.0.39.
Resolution
Update Plesk
Workaround
Update Plesk to the fixed version (recommended).
If an update is not possible, patch the panel manually.
Connect to the server over SSH
Run this command to replace the updater with the patched version
# cp -a /usr/local/psa/admin/sbin/pum_worker{,.bak} && wget -O /usr/local/psa/admin/sbin/pum_worker https://support.plesk.com/hc/en-us/article_attachments/12387464256023 && chmod 750 /usr/local/psa/admin/sbin/pum_worker