I've installed gnome desktop and now I don't have unity desktop.
How can I reinstall it?
Type the following in a Terminal:
sudo apt-get update
sudo apt-get install ubuntu-desktop
Now reboot and you should have the Unity desktop environment installed.
For dependencies after installing something else try
sudo apt-get check
sudo apt-get install -f
It should repair all problems with dependencies or errors
Edit: