Cannot upgrade Plesk: "wrong ELF class: ELFCLASS32"

Created:

2016-11-16 13:12:51 UTC

Modified:

2017-04-24 11:42:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot upgrade Plesk: "wrong ELF class: ELFCLASS32"

Applicable to:

  • Plesk 11.5 for Linux

Symptoms

I tried to upgrade Plesk Panel installed inside VZ container, but autoinstaller failed with the following error:

Failed to check system configuration - Yum utility finished with errors. Installation may fail.
Traceback (most recent call last):
File "/usr/local/psa/bin/yum_install", line 6, in ?
import yum
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 23, in ?
import rpm
File "/usr/lib/python2.4/site-packages/rpm/__init__.py", line 7, in ?
from _rpm import *
ImportError: /usr/lib/python2.4/site-packages/rpm/_rpmmodule.so: wrong ELF class: ELFCLASS32

Cause

The issue is caused by the fact, that installed yum package itself has x86_64 architecture, but its dependencies ( rpm , rpm-libs , etc) have i386 architecture.

Resolution

  1. Install the following packages with x86_64 architecture, you can use RPM search to find needed packages, please do not forget to specify your OS version.

    popt
    python-elementtree
    python-sqlite
    rpm
    rpm-libs
    rpm-python
    yum-metadata-parser
  2. Rerun autoinstaller utility and complete upgrade.

Have more questions? Submit a request
Please sign in to leave a comment.