Error when trying to uninstall/reinstall git

First, start by removing the post-installation files of libc-bin because maybe they are corrupted.

sudo mv /var/lib/dpkg/info/libc-bin* ~/

After that reinstall libc-bin and git:

sudo apt update && sudo apt --fix-broken install && sudo apt install libc-bin && sudo apt install git

Feel free to ask me anything in the comments.