Skip to content

Instantly share code, notes, and snippets.

@tacahiroy
Last active June 11, 2024 07:43
Show Gist options
  • Save tacahiroy/f62050ba1457220d4ecb53bcf26f8134 to your computer and use it in GitHub Desktop.
Save tacahiroy/f62050ba1457220d4ecb53bcf26f8134 to your computer and use it in GitHub Desktop.
The resolution for apt failured due to error processing package libc-bin
sudo apt install -y foo
...
Setting up libc-bin (2.31-0ubuntu9) ...
Aborted (core dumped)
/sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib' given more than once
/usr/local/lib:
/lib/x86_64-linux-gnu:
Aborted (core dumped)
dpkg: error processing package libc-bin (--configure):
 installed libc-bin package post-installation script subprocess returned error exit status 134
Errors were encountered while processing:
 libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
# echo /usr/lib/x86_64-linux-gnu > /etc/ld.so.conf.d/libc.conf
# ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment