install: fix git error and support Ubuntu 22.04

refs #5204

Change-Id: Ic6e2ce789746a18cdb8b97e5a4e8175a89ad2e8d
diff --git a/util/pkgdep/ubuntu.sh b/util/pkgdep/ubuntu.sh
index 91abc29..456ce40 100644
--- a/util/pkgdep/ubuntu.sh
+++ b/util/pkgdep/ubuntu.sh
@@ -1,6 +1,6 @@
 # -*- Mode:bash; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
 #
-# Copyright (C) 2015-2021, The University of Memphis,
+# Copyright (C) 2015-2022, The University of Memphis,
 #                          Arizona Board of Regents,
 #                          Regents of the University of California.
 #
@@ -30,8 +30,16 @@
 
 source "$PKGDEPDIR/debian-like.sh"
 
-APT_PKGS+=(
-  libigraph0-dev
-)
+if [[ $VERSION_ID == '20.04' ]]; then
+  APT_PKGS+=(
+    libigraph0-dev
+  )
+else
+  APT_PKGS+=(
+    libigraph-dev
+  )
+fi
 
-PPA_AVAIL=1
+if [[ $VERSION_ID == '20.04' ]] || [[ $VERSION_ID == '21.10' ]]; then
+  PPA_AVAIL=1
+fi