Problems with git clone

  1. Install missing packages with the following command.

    sudo apt install build-essential nghttp2 libnghttp2-dev libssl-dev
    
  2. If that doesn't work check if Ubuntu is behind a proxy, and if so modify ~/.gitconfig adding the proxy configuration:

    touch ~/.gitconfig
    [http]
        proxy = http://xxx.xxx.xxx.xxx:pppp
    
  3. If that doesn't work and if you are using a VPN, drop your VPN connection and reconnect to the VPN.


This is a bug in WSL2 installations of git.

See here

I'm guessing you are using Git inside of WSL. If so, be sure to add your issue to the feed in the link.

Even if it has already been said many times in the same feed, they judge priority based at least partly on community feedback. Your voice is important here.