Jump to content

So I can't install anything because I don't have libc-bin, so when I try to get that, this happens.

nathan@Big-Blue:~$ sudo apt-get -f install[sudo] password for nathan: Reading package lists... DoneBuilding dependency tree       Reading state information... DoneCorrecting dependencies... DoneThe following extra packages will be installed:  libc-binThe following NEW packages will be installed:  libc-bin0 upgraded, 1 newly installed, 0 to remove and 59 not upgraded.Need to get 0 B/1,173 kB of archives.After this operation, 3,559 kB of additional disk space will be used.Do you want to continue? [Y/n] yCan't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.dpkg: warning: 'ldconfig' not found in PATH or not executabledpkg: error: 1 expected program not found in PATH or not executableNote: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbinE: Sub-process /usr/bin/dpkg returned an error code (2)

So how do I get ldconfig?

Link to comment
https://linustechtips.com/topic/531238-need-ubuntu-help/
Share on other sites

Link to post
Share on other sites

how?

Run 
find . -name 'ldconfig'

from /

 

If it finds it, note the location and then run

echo $PATH

and see if the dir from step 1 is in the results from step 2. If it's not, that's your issue. If step 1 finds nothing, then ldconfig is not on your machine, which sounds like a broken dependency (possibly due to you loading from a repo that doesn't match your version.

Link to comment
https://linustechtips.com/topic/531238-need-ubuntu-help/#findComment-7047552
Share on other sites

Link to post
Share on other sites

Run 
find . -name 'ldconfig'

from /

 

If it finds it, note the location and then run

echo $PATH

and see if the dir from step 1 is in the results from step 2. If it's not, that's your issue. If step 1 finds nothing, then ldconfig is not on your machine, which sounds like a broken dependency (possibly due to you loading from a repo that doesn't match your version.

 

Its not there, what do I do now?

Link to comment
https://linustechtips.com/topic/531238-need-ubuntu-help/#findComment-7047567
Share on other sites

Link to post
Share on other sites

 Can you post output from following those steps?

nathan@Big-Blue:~$ sudo apt-get -f install[sudo] password for nathan: Reading package lists... DoneBuilding dependency tree       Reading state information... DoneCorrecting dependencies... DoneThe following extra packages will be installed:  libc-binThe following NEW packages will be installed:  libc-bin0 upgraded, 1 newly installed, 0 to remove and 59 not upgraded.Need to get 0 B/1,173 kB of archives.After this operation, 3,559 kB of additional disk space will be used.Do you want to continue? [Y/n] yCan't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.dpkg: warning: 'ldconfig' not found in PATH or not executabledpkg: error: 1 expected program not found in PATH or not executableNote: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbinE: Sub-process /usr/bin/dpkg returned an error code (2)nathan@Big-Blue:~$ sudo dpkg-reconfigure libc6Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17./var/lib/dpkg/info/libc6:amd64.postinst: 314: /var/lib/dpkg/info/libc6:amd64.postinst: ldconfig: not foundnathan@Big-Blue:~$ sudo dpkg-reconfigure libc-binCan't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17./usr/sbin/dpkg-reconfigure: libc-bin is broken or not fully installednathan@Big-Blue:~$ sudo apt-get install --reinstall libc6Reading package lists... DoneBuilding dependency tree       Reading state information... DoneYou might want to run 'apt-get -f install' to correct these:The following packages have unmet dependencies: cups : Depends: libc-bin (>= 2.13)E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).nathan@Big-Blue:~$ sudo apt-get install --reinstall libc-binReading package lists... DoneBuilding dependency tree       Reading state information... DoneThe following NEW packages will be installed:  libc-bin0 upgraded, 1 newly installed, 0 to remove and 59 not upgraded.Need to get 0 B/1,173 kB of archives.After this operation, 3,559 kB of additional disk space will be used.Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.dpkg: warning: 'ldconfig' not found in PATH or not executabledpkg: error: 1 expected program not found in PATH or not executableNote: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbinE: Sub-process /usr/bin/dpkg returned an error code (2)nathan@Big-Blue:~$ nathan@Big-Blue:~$ sudo apt-get dist-upgradeReading package lists... DoneBuilding dependency tree       Reading state information... DoneYou might want to run 'apt-get -f install' to correct these.The following packages have unmet dependencies: cups : Depends: libc-bin (>= 2.13)E: Unmet dependencies. Try using -f.nathan@Big-Blue:~$ 
Link to comment
https://linustechtips.com/topic/531238-need-ubuntu-help/#findComment-7047763
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×