pihole -up and git "Failed sending HTTP2 data"

I was getting this issue when I wanted to update my pihole:

root@DietPi:~# pihole -up
Checking for updates…
fatal: unable to access '> https://github.com/pi-hole/pi-hole.git/> ': Failed sending HTTP2 data
Pi-hole Core: up to date
fatal: unable to access '> https://github.com/pi-hole/AdminLTE.git/> ': Failed sending HTTP2 data
Web Interface: up to date
FTL: up to date

[✓] Everything is up to date!

I also couldn’t pull up any git addresses using:

git https://

This would work however:

git git://

I found out from https://superuser.com/questions/1642858/git-on-debian-10-backports-throws-fatal-unable-to-access-https-github-com-us that it was possibly a libcurl3-gnutls issue, also reported here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987187. I solved this by downgrading to 7.64.0-4+deb10u2 for now using the command:

apt install libcurl3-gnutls=7.64.0-4+deb10u2

When I had the problem, libcurl3-gnutls 7.74.0-1.2~bpo10+1 was installed.

Hi,

looks like you had package libcurl3-gnutls installed from Buster backports. (indicated by bpo10+1). Usually packages are not installed from backports as this would need to be requested explicitly. Standard version on Buster is/was 7.64.0-4+deb10u2

I did 2 test installing PiHole

1st test done on Buster - VM 64bit, version installed libcurl3-gnutls 7.64.0-4+deb10u2

root@DietPiVM1:~# dpkg -l libcurl3-gnutls
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version          Architecture Description
+++-=====================-================-============-=============================================================
ii  libcurl3-gnutls:amd64 7.64.0-4+deb10u2 amd64        easy-to-use client-side URL transfer library (GnuTLS flavour)
root@DietPiVM1:~# pihole -up
  [i] Checking for updates...
  [i] Pi-hole Core:     up to date
  [i] Web Interface:    up to date
  [i] FTL:              up to date

  [✓] Everything is up to date!
root@DietPiVM1:~#

2nd test done on Bullseye - RPi4 64bit, version installed libcurl3-gnutls 7.74.0-1.3+b1

root@DietPi4:~# dpkg -l libcurl3-gnutls
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version       Architecture Description
+++-=====================-=============-============-=============================================================
ii  libcurl3-gnutls:arm64 7.74.0-1.3+b1 arm64        easy-to-use client-side URL transfer library (GnuTLS flavour)
root@DietPi4:~# pihole -up
  [i] Checking for updates...
  [i] Pi-hole Core:     up to date
  [i] Web Interface:    up to date
  [i] FTL:              up to date

  [✓] Everything is up to date!
root@DietPi4:~#

Probably installing packages from backports was causing some issues as version 7.74.0-1.3+b1 is working fine on Bullseye.

https://packages.debian.org/search?suite=all&searchon=names&keywords=libcurl3-gnutls

Thanks, I think that would more or less explain my situation. I have no idea how I ended up with a backport though lol.

probably some software was installed in past which invoke backports.