This should work:
DEBIAN_FRONTEND=noninteractive apt-get install lightdm -y
I had the same problem installing CUDA and this fixed it.
This should work:
DEBIAN_FRONTEND=noninteractive apt-get install lightdm -y
I had the same problem installing CUDA and this fixed it.