Tried to find the solution online but was not able to find any.
How can I enter into graphical user interface?
I even used right password but still it's stuck on this terminal mode.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
See my comment. If that does not work, try:
apt update apt upgrade reboot
After the reboot
tasksel install desktop gnome-desktop
You will need internet for downloading the packages. Maybe read the following page.