Plesk

Plesk Update fails on CentOS/RHEL: Packages excluded due to repository priority protections

Symptoms

Plesk Update fails on CentOS/RHEL-based distributions with the following message:

XX packages excluded due to repository priority protections

Cause

Some packages are held by more than one repository. The priorities plugin chooses packages from the highest-priority repository, excluding duplicate entries from other repos.

Resolution

  1. Connect to the Plesk server via SSH.

  2. Disable priorities directive:

    2.1. Open the file /etc/yum/pluginconf.d/priorities.conf in a text editor. In this example, we are using the vi editor:

    # vi /etc/yum/pluginconf.d/priorities.conf

    2.2. Change the value for enabled to 0:

    [main]
    enabled = 0

    2.3. Save the changes and close the file.

  3. Disable priority in CentOS-Base.repo file:

    3.1. Open the file /etc/yum.repos.d/CentOS-Base.repo in a text editor:

    # vi /etc/yum.repos.d/CentOS-Base.repo

    3.2. Comment out the priority directive by placing a # (hash) character at the beginning of the line.

    [BaseOS]
    ...
    #priority=1

    3.3. Save the changes and close the file.

  4. Rerun Plesk Update.