• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Error while loading shared libraries libGeoIP.so.1: invalid ELF header

AdelM

Basic Pleskian
Hello

Since two days I have the following email from my server :

Some problems occurred with the System Updates tool on your server ..... Please resolve them manually.

Reason: 2018-09-22 04:39:22 INFO: pum is called with arguments: ['--update', '--json']
2018-09-22 04:39:29 INFO: no packages to update
* Stopping domain name service... bind9
...done.
* Starting domain name service... bind9
/usr/sbin/named: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libGeoIP.so.1: invalid ELF header
...fail!
invoke-rc.d: initscript bind9, action "restart" failed.
dpkg: error processing package bind9 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
bind9
Error in function:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
2018-09-22 04:39:30 ERROR: installArchives() failed
2018-09-22 04:39:30 ERROR: Exited with returncode 1.

How can I fix that ?

Best regards
-------------------------------------------------------------------
Version Plesk Onyx v17.8.11_build1708180301.19 os_Ubuntu 14.04
OS Ubuntu 14.04.5 LTS
-------------------------------------------------------------------
 
Last edited:
Try to re-install libgeoip1 package at least. Incorrect file /usr/lib/x86_64-linux-gnu/libGeoIP.so.1 is a part of this package:

# ls -la /usr/lib/x86_64-linux-gnu/libGeoIP.so.1
lrwxrwxrwx 1 root root 17 Jan 13 2016 /usr/lib/x86_64-linux-gnu/libGeoIP.so.1 -> libGeoIP.so.1.6.9

# dpkg -S /usr/lib/x86_64-linux-gnu/libGeoIP.so.1
libgeoip1:amd64: /usr/lib/x86_64-linux-gnu/libGeoIP.so.1
 
Hello Igor

Thanks for your reply

I tried to upgrade, remove and install, but having the same error.


root@myserver:~# sudo apt-get upgrade libgeoip-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
libgeoip-dev is already the newest version.
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
plesk-py27-pip plesk-py27-setuptools plesk-py27-virtualenv plesk-wheel-cffi
plesk-wheel-cryptography plesk-wheel-psutil
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] J
bind9 (1:9.9.5.dfsg-3ubuntu0.18) wird eingerichtet ...
* Stopping domain name service... bind9 [ OK ]
* Starting domain name service... bind9
/usr/sbin/named: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libGeoIP.so.1: invalid ELF header
[fail]
invoke-rc.d: initscript bind9, action "restart" failed.
dpkg: Fehler beim Bearbeiten des Paketes bind9 (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@myserver:~# sudo apt-get instal libgeoip-dev
E: Ungültige Operation instal

root@myserver:~# sudo apt-get remove libgeoip-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
plesk-py27-pip plesk-py27-setuptools plesk-py27-virtualenv plesk-wheel-cffi
plesk-wheel-cryptography plesk-wheel-psutil
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
Die folgenden Pakete werden ENTFERNT:
libgeoip-dev
0 aktualisiert, 0 neu installiert, 1 zu entfernen und 0 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 670 kB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] J
(Lese Datenbank ... 132514 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von libgeoip-dev (1.6.0-1) ...
bind9 (1:9.9.5.dfsg-3ubuntu0.18) wird eingerichtet ...
* Stopping domain name service... bind9 [ OK ]
* Starting domain name service... bind9
/usr/sbin/named: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libGeoIP.so.1: invalid ELF header
[fail]
invoke-rc.d: initscript bind9, action "restart" failed.
dpkg: Fehler beim Bearbeiten des Paketes bind9 (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@myserver:~# sudo apt-get install libgeoip-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
plesk-py27-pip plesk-py27-setuptools plesk-py27-virtualenv plesk-wheel-cffi
plesk-wheel-cryptography plesk-wheel-psutil
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
Die folgenden NEUEN Pakete werden installiert:
libgeoip-dev
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Es müssen noch 0 B von 113 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 670 kB Plattenplatz zusätzlich benutzt.
Vormals nicht ausgewähltes Paket libgeoip-dev wird gewählt.
(Lese Datenbank ... 132485 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../libgeoip-dev_1.6.0-1_amd64.deb ...
Entpacken von libgeoip-dev (1.6.0-1) ...
bind9 (1:9.9.5.dfsg-3ubuntu0.18) wird eingerichtet ...
* Stopping domain name service... bind9 [ OK ]
* Starting domain name service... bind9
/usr/sbin/named: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libGeoIP.so.1: invalid ELF header
[fail]
invoke-rc.d: initscript bind9, action "restart" failed.
dpkg: Fehler beim Bearbeiten des Paketes bind9 (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
libgeoip-dev (1.6.0-1) wird eingerichtet ...
Fehler traten auf beim Bearbeiten von:
bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@myserver:~#



Best regards

Adel
 
Hello

I'm still having the same error message (below) every day sent by email (Package Update Manager notification)

Bind is runing on the server but in plesk in "Services Managment" it's shown as "not installed

Does anybody already had this issue.

Best regards

upload_2018-10-23_11-59-43.png

-----------------------------------------------------------------------------------
Some problems occurred with the System Updates tool on your server ... Please resolve them manually.

Reason: 2018-10-23 04:39:28 INFO: pum is called with arguments: ['--update', '--json']
2018-10-23 04:39:35 INFO: updating packages: linux-libc-dev
* Starting domain name service... bind9
/usr/sbin/named: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libGeoIP.so.1: invalid ELF header
...fail!
invoke-rc.d: initscript bind9, action "start" failed.
dpkg: error processing package bind9 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of plesk-dns-bind-driver:
plesk-dns-bind-driver depends on bind9 (>= 9.2.1); however:
Package bind9 is not configured yet.

dpkg: error processing package plesk-dns-bind-driver (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
bind9
plesk-dns-bind-driver
Error in function:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
2018-10-23 04:39:42 ERROR: installArchives() failed
2018-10-23 04:39:42 ERROR: Exited with returncode 1.
-----------------------------------------------------------------------------------
 
Hi,

an error like that could hint at drive / file system corruption. Have you run a complete file system check?
Afterwards try to reinstall the package. Just a thought out of experience...

Cheers,
Tom
 
Hello TomBoB

Thanks for you reply

I did a "plesk repair fs" but no errors were found

Code:
root@myserver:~# plesk repair fs
Checking Linux system files ......................................... [OK]
Checking virtual hosts' file system ................................. [OK]
Error messages: 0; Warnings: 0; Errors resolved: 0

And there is enough fre space on the server (38,6% used)

Tried again as suggsted IgorG

Code:
root@myserver:~# ls -la /usr/lib/x86_64-linux-gnu/libGeoIP.so.1
lrwxrwxrwx 1 root root 17 Dec 27  2013 /usr/lib/x86_64-linux-gnu/libGeoIP.so.1 -> libGeoIP.so.1.6.0
root@myserver:~# dpkg -S /usr/lib/x86_64-linux-gnu/libGeoIP.so.1
libgeoip1:amd64: /usr/lib/x86_64-linux-gnu/libGeoIP.so.1
root@myserver:~# /etc/init.d/bind9 restart
 * Stopping domain name service... bind9  [ OK ]
 * Starting domain name service... bind9    /usr/sbin/named: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libGeoIP.so.1: invalid ELF header
                                          [fail]

Any suggestions or ideas

Best regards
 
Hello Igor

Already tried here : Question - Error while loading shared libraries libGeoIP.so.1: invalid ELF header
By mistake I removed and reinstalled libgeoip-dev instead of libgeoip1

After reinstalling libgeoip1 I can restart bind without errors. The only thing is that bind is still shown as "not installed" in plesk in "Services Managment"
Tried to restart plesk, restart bind

Code:
root@myserver:~# sudo apt-get remove libgeoip1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libisc95 libisccc90 liblwres90 plesk-py27-pip plesk-py27-setuptools
  plesk-py27-virtualenv plesk-wheel-cffi plesk-wheel-cryptography
  plesk-wheel-psutil
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  bind9 bind9-host bind9utils dnsutils geoip-bin libbind9-90 libdns100
  libgeoip-dev libgeoip1 libisccfg90 plesk-dns-bind-driver
0 upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 8,250 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 132720 files and directories currently installed.)
Removing plesk-dns-bind-driver (17.8.11-ubuntu14.04.build1708180301.19) ...
Removing bind9 (1:9.9.5.dfsg-3ubuntu0.18) ...
Removing dnsutils (1:9.9.5.dfsg-3ubuntu0.18) ...
Removing bind9-host (1:9.9.5.dfsg-3ubuntu0.18) ...
Removing bind9utils (1:9.9.5.dfsg-3ubuntu0.18) ...
Removing libgeoip-dev (1.6.0-1) ...
Removing geoip-bin (1.6.0-1) ...
Removing libbind9-90 (1:9.9.5.dfsg-3ubuntu0.18) ...
Removing libisccfg90 (1:9.9.5.dfsg-3ubuntu0.18) ...
Removing libdns100 (1:9.9.5.dfsg-3ubuntu0.18) ...
Removing libgeoip1:amd64 (1.6.0-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...
root@myserver:~# sudo apt-get install libgeoip1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libisc95 libisccc90 liblwres90 plesk-py27-pip plesk-py27-setuptools
  plesk-py27-virtualenv plesk-wheel-cffi plesk-wheel-cryptography
  plesk-wheel-psutil
Use 'apt-get autoremove' to remove them.
Suggested packages:
  geoip-bin
The following NEW packages will be installed:
  libgeoip1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/71.0 kB of archives.
After this operation, 250 kB of additional disk space will be used.
Selecting previously unselected package libgeoip1:amd64.
(Reading database ... 132570 files and directories currently installed.)
Preparing to unpack .../libgeoip1_1.6.0-1_amd64.deb ...
Unpacking libgeoip1:amd64 (1.6.0-1) ...
Setting up libgeoip1:amd64 (1.6.0-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...

root@myserver:~# /etc/init.d/bind9 restart
root@myserver:~# /etc/init.d/psa restart
root@myserver:~# /etc/init.d/psa stop
Stopping sw_engine service...                                         done
root@myserver:~# /etc/init.d/psa start
Starting sw_engine service...                                         done
Starting sw_cp_server service...                                      already started
Starting mysql service...                                             already started
Starting named service...                                             done
Starting mailer service...                                            already started
Starting spamfilter service...                                        already started
Starting drweb service...                                             already started
Starting apache service...                                            already started
Starting xinetd service...                                            already started
root@myserver:~# /etc/init.d/bind9 stop
root@myserver:~# /etc/init.d/bind9 start
root@myserver:~#
 
Back
Top