when the computer boot ubuntu it only boots the terminal i cant get into a user interface

i think i deleted the interface coz i wanted to switch to kde from g .. i tried reintalling the packge from terminal using "sudo tastsel" after that i reinstall the desktop but an aptitude error (100) happens and now am stuck i cant reinstall and i cant delete it from windowsam very new to linux this my first time using it and it has to work coz am sick and tiered of windows so if anyone can help thank you

Comments

Try manually starting kde or

Try manually starting kde or gnome: sudo gdm      or   sudo kdm.If that works do: sudo dpkg --reconfigure gdmand it will ask you to set it as a default start up.   Please read the appropriate sections of the unofficial Ubuntu guide for switching desktops.