Skip to content

Instantly share code, notes, and snippets.

@madkoding
Last active December 10, 2023 21:17
Show Gist options
  • Save madkoding/61e66b11664e854c8a15d5909b3be380 to your computer and use it in GitHub Desktop.
Save madkoding/61e66b11664e854c8a15d5909b3be380 to your computer and use it in GitHub Desktop.
Fix libc config problems (/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once)

Troubleshooting libc-bin on Debian/Ubuntu Systems

This document provides instructions for addressing issues with the libc-bin package on Debian or Ubuntu-based systems.

Problem Description

The error dpkg: error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 134 indicates a problem during the configuration of the libc-bin package.

Also the error /sbin/ldconfig.real: Path '/usr/lib/x86_64-linux-gnu' given more than once is also related

Instructions

Step 1: Download libc-bin Package

First, download the libc-bin package without installing it:

apt-get download libc-bin

Step 2: Extract Package Contents

Extract the contents of the downloaded package:

dpkg -x libc-bin*.deb unpackdir/

Step 3: Copy ldconfig to /sbin

Copy the ldconfig file from the extracted package to /sbin:

sudo cp unpackdir/sbin/ldconfig /sbin/

Step 4: Reinstall libc-bin

Attempt to reinstall libc-bin:

sudo apt-get install --reinstall libc-bin

Step 5: Install Missing Dependencies

If there are missing dependencies, install them:

sudo apt-get install -y

Step 6: Fix Broken Dependencies

If the problem persists, try fixing broken dependencies:

sudo apt-get -f install

Step 7: Configure dpkg

If there are still issues, try configuring all pending packages:

sudo dpkg --configure -a

Additional Notes

  • These instructions assume that the issue is related to libc-bin and that the system is still functional.
  • If the system becomes unstable or unbootable, it may be necessary to seek professional help or consider reinstalling the operating system.

Conclusion

These instructions are designed to help address specific issues with the libc-bin package on Debian or Ubuntu-based systems. If problems persist after following these steps, additional assistance from community forums or a professional is recommended.

@XxxGHOSTX
Copy link

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)

@madkoding
Copy link
Author

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)

a little late but updated instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment