Although not strictly Ubuntu, I can confirm this bug happens on Linux Mint 18.3 "Sylvia", Cinnamon 64-bit. This helped me fix it:
sudo apt-get purge runit sudo apt-get purge git-daemon-run sudo apt-get install -f
It is not necessary to purge git-all or git packages. Keep the rest, only get rid of runit and git-daemon-run. After doing this, Git works fine on my system, and apt-get is clean.
Although not strictly Ubuntu, I can confirm this bug happens on Linux Mint 18.3 "Sylvia", Cinnamon 64-bit. This helped me fix it:
sudo apt-get purge runit
sudo apt-get purge git-daemon-run
sudo apt-get install -f
It is not necessary to purge git-all or git packages. Keep the rest, only get rid of runit and git-daemon-run. After doing this, Git works fine on my system, and apt-get is clean.