Plesk

Plesk upgrade fails: Public key for <package_name> is not installed – Plesk

Symptoms

Cause

RPM database corruption

Resolution

Warning: the steps below are potentially dangerous and should be executed by the server administrator

  1. Create a server snapshot in the hosting panel or on the hardware node.
  2. Connect to the server via SSH
  3. Back up the RPM database files:

    # cp -a /var/lib/rpm /root/rpm_backup

  4. Remove corrupted RPM database files:

    # rm -rf /var/lib/rpm/__db.*

  5. Rebuild RPM database:

    # rpm --rebuilddb

  6. Verify the database:

    # rpm --verifydb

  7. Check for package duplicates:

    # yum install yum-utils
    # package-cleanup --dupes
    # package-cleanup --cleandupes
    # rpm -e gpg-pubkey-914bdf7e-55c05220 --allmatches

  8. Update the system:

    # yum clean all
    # yum makecache
    # yum update

  9. Re-import the Plesk key again:

    # rpm --import http://autoinstall.plesk.com/plesk.gpg

Exit mobile version