Sudo apt upgrade -y is not working in the git labs (and also sudo apt install git-all -y is failing with same issue)

Hi @eduhemanth

Use

sudo apt update

(not upgrade) before running the git install.

TIP:

Although the official git guide says to install git-all, it is sufficient and a lot quicker to just install git

sudo apt install git -y

as described here: How To Install Git on Ubuntu 20.04 | DigitalOcean

Note that -y tells apt to assume yes for any yes.no question.

this issue still persists for the lab, hopwever the same dosent have any issues on Ubuntu 22.04 from playground with gzip 1.10