I was trying to install git in my Ubuntu 22.04.3 LTS.
- After using "sudo apt update" command.
- I used "sudo apt upgrade -y" cmd.
- Then it displayed this message -> "Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5847 (aptd)"