Depois de pesquisar e experimentar mais, achei este procedimento que corrigiu isso para mim :
sudo apt-get purge runit
sudo apt-get purge git-all
sudo apt-get purge git
sudo apt-get autoremove
sudo apt update
sudo apt install git
sudo apt-get instala git-all
resulta nesta saída:
Setting up runit (2.1.2-3ubuntu1) ...
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
dpkg: error processing package runit (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of git-daemon-run:
git-daemon-run depends on runit; however:
Package runit is not configured yet.
dpkg: error processing package git-daemon-run (--configure):
dependency problems - leaving unconfigured
Setting up libcommon-sense-perl (3.74-1build1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libtypes-serialiser-perl (1.0-1) ...
Setting up libjson-xs-perl (3.010-2build1) ...
Setting up libpackage-stash-xs-perl (0.28-2build2) ...
Setting up tla-doc (1.3.5+dfsg1-2) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu13) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Errors were encountered while processing:
runit
git-daemon-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
Eu vi a outra pergunta semelhante , e realizei estes passos,
sudo apt-get update --> update package information
sudo apt-get dist-upgrade --> upgrade packages on system
sudo apt-get -f install --> fix broken packages
mas não resolveu o problema. A instalação do git também faz com que o popup "System Program Problem Detected" seja detectado. Isto é seguido por "Crash Report = Desculpe, um problema ocorreu durante a instalação do software. Pacote: runit 2.1.2-3ubuntu1.
Depois de pesquisar e experimentar mais, achei este procedimento que corrigiu isso para mim :
sudo apt-get purge runit
sudo apt-get purge git-all
sudo apt-get purge git
sudo apt-get autoremove
sudo apt update
sudo apt install git