Due to the increase fakes of SD/microSD cards, you can use the tool H2testw to test the actual size of the card. I brought a OV 32GB microSD off http://www.JD.com and wasn’t sure if it was real or not.

If H2testw doesn’t pass and you’re unluck and got a counterfeit or fake SD card. You can still use BootICE to fix the SD card and make it usable.

In a terminal, use the following commands to download and extract the libc-bin package:

apt-get download libc-bin
dpkg -x libc-bin*.deb unpackdir/

Next you need to copy these files:

sudo cp unpackdir/sbin/ldconfig /sbin/

Now you need to make sure that things are in order. Run these commands to ensure that:

sudo apt-get install --reinstall libc-bin
sudo apt-get install -f

Normally, this should fix the problem of Can’t exec “locale”: No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16. Do let me know in the comment section whether or not this fixes your problem.