Unable to install docker on ubuntu and debian in local VM


I am not able to install the docker in the debian or Ubuntu in the local VM. I am getting the below error while installing the docker. Can anyone help me with this issue?

I have used the below cmd for docker installation however i am not able to pull image.

apt update
apt install docker docker-compose