Issue with git install on lab
Please try resetting the lab. It works for me.
$ sudo apt update
Get:1 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB]
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://archive.canonical.com/ubuntu bionic/partner Sources [1229 B]
Get:6 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [1587 B]
Get:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main Sources [352 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [19.7 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main Sources [667 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/restricted Sources [33.0 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse Sources [11.9 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/universe Sources [376 kB]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [1131 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Sources [36.4 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [22.8 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1540 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [612 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [1172 kB]
Get:20 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2965 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [29.9 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2318 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3397 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-backports/main Sources [6586 B]
Get:25 http://archive.ubuntu.com/ubuntu bionic-backports/universe Sources [7129 B]
Get:26 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [12.2 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [12.9 kB]
Fetched 15.0 MB in 3s (5266 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
155 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ sudo apt install git -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git
0 upgraded, 1 newly installed, 0 to remove and 155 not upgraded.
Need to get 3930 kB of archives.
After this operation, 32.3 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 git amd64 1:2.17.1-1ubuntu0.12 [3930 kB]
Fetched 3930 kB in 1s (5987 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package git.
(Reading database ... 23634 files and directories currently installed.)
Preparing to unpack .../git_1%3a2.17.1-1ubuntu0.12_amd64.deb ...
Unpacking git (1:2.17.1-1ubuntu0.12) ...
Setting up git (1:2.17.1-1ubuntu0.12) ...
$
Thanks. Resetting the lab fixed the issue.