Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!

August 30, 2016 929 views
DigitalOcean Linux Commands Ubuntu

After running
apt-get install mailutils

The installation failed with the following message

The following extra packages will be installed:
guile-1.8-libs libgsasl7 libmailutils2 libntlm0
Suggested packages:
mailutils-mh
The following NEW packages will be installed:
guile-1.8-libs libgsasl7 libmailutils2 libntlm0 mailutils
0 upgraded, 5 newly installed, 0 to remove and 137 not upgraded.
Need to get 2,178 kB of archives.
After this operation, 7,748 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrors.digitalocean.com/ubuntu/ precise/main guile-1.8-libs amd64 1.8.8+1-6ubuntu2 [747 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu/ precise/universe libntlm0 amd64 1.2-1 [20.3 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu/ precise/universe libgsasl7 amd64 1.6.1-1 [131 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu/ precise/universe libmailutils2 amd64 1:2.2+dfsg1-5 [870 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu/ precise/universe mailutils amd64 1:2.2+dfsg1-5 [410 kB]
Fetched 2,178 kB in 1s (1,387 kB/s)
Selecting previously unselected package guile-1.8-libs.
(Reading database ... 154103 files and directories currently installed.)
Unpacking guile-1.8-libs (from .../guile-1.8-libs1.8.8+1-6ubuntu2amd64.deb) ...
Selecting previously unselected package libntlm0.
Unpacking libntlm0 (from .../libntlm01.2-1amd64.deb) ...
Selecting previously unselected package libgsasl7.
Unpacking libgsasl7 (from .../libgsasl71.6.1-1amd64.deb) ...
Selecting previously unselected package libmailutils2.
Unpacking libmailutils2 (from .../libmailutils21%3a2.2+dfsg1-5amd64.deb) ...
Selecting previously unselected package mailutils.
Unpacking mailutils (from .../mailutils1%3a2.2+dfsg1-5amd64.deb) ...
Processing triggers for man-db ...
Setting up guile-1.8-libs (1.8.8+1-6ubuntu2) ...
Setting up libntlm0 (1.2-1) ...
Setting up libgsasl7 (1.6.1-1) ...
Setting up libmailutils2 (1:2.2+dfsg1-5) ...
Setting up mailutils (1:2.2+dfsg1-5) ...
update-alternatives: using /usr/bin/frm.mailutils to provide /usr/bin/frm (frm) in auto mode.
update-alternatives: using /usr/bin/from.mailutils to provide /usr/bin/from (from) in auto mode.
update-alternatives: using /usr/bin/messages.mailutils to provide /usr/bin/messages (messages) in auto mode.
update-alternatives: using /usr/bin/movemail.mailutils to provide /usr/bin/movemail (movemail) in auto mode.
update-alternatives: using /usr/bin/readmsg.mailutils to provide /usr/bin/readmsg (readmsg) in auto mode.
update-alternatives: using /usr/bin/dotlock.mailutils to provide /usr/bin/dotlock (dotlock) in auto mode.
update-alternatives: using /usr/bin/mail.mailutils to provide /usr/bin/mailx (mailx) in auto mode.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Inconsistency detected by ld.so: dl-close.c: 759: dlclose: Assertion `map->linitcalled' failed!
E: Problem executing scripts DPkg::Post-Invoke 'if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi '
E: Sub-process returned an error code

And now if I run ANY command I get the following error:
Inconsistency detected by ld.so: dl-close.c: 759: dlclose: Assertion `map->linitcalled' failed!

Does anyone know how I can fix this?

1 Answer

This is not an issue I've encountered myself before but a similar issue was reported on the LetsEncrypt forums where the recommended course of action is to do a reboot followed by completing an apt-get update; apt-get upgrade

Have another answer? Share your knowledge.