Plesk

Unable to update Plesk: Sub-process /usr/bin/dpkg returned an error code (1): iF mysql-server-5.7

Symptoms

Cause

Packages are misconfigured or were not properly installed.

Resolution

Warning: Manipulations with the package manager can lead to system inoperability or data loss. Back up the server, proceed with caution or contact professionals if needed.

  1. Connect to the server via SSH.

  2. Configure the packages with the iF attributes:

    # dpkg --configure mysql-server-5.7

  3. Configure the packages with the iU attributes:

    # dpkg --configure mysql-server

  4. Make sure that the packages were successfully configured (they should have the ii attribute):

    # dpkg -l | grep mysql-server
    ii mysql-server-5.7 5.7.18-0ubuntu0.16.04.1 amd64 MySQL database server binaries and system database setup
    iU mysql-server 5.7.18-0ubuntu0.16.04.1 all MySQL database server (metapackage depending on the latest version)

  5. If the issue persists, reinstall the failing package:

    # apt-get install --reinstall mysql-server

  6. Restart update or upgrade tasks.

Exit mobile version