O Git não é visto pelo WSL após a instalação no Windows. Usando apt-get install git
dá o seguinte erro:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
git : Depends: libc6 (>= 2.38) but 2.31-13+deb11u9 is to be installed
Recommends: ssh-client
E: Unable to correct problems, you have held broken packages.
quando tento apt-get install libc6=2.38
eu consigo
Version '2.38' for 'libc6' was not found
isso é depois
apt-get update
apt-get upgrade
apt-get clean
apt-get autoclean
dpkg --configure -a
apt-get -f install
Isso ocorre com uma nova instalação do WSL usando Debian no Windows 10.
As únicas soluções que encontrei on-line são para caixas Linux do Ubuntu e tratam da atualização do libc6 ou similar, não relevantes para a instalação do git e para o problema de dependência não atendida.