apt-get clean just removes the package cache. There's no way* it could hurt anything.
apt-get autoremove removes packages that were automatically installed but now their dependent package has either been removed or no longer depends on them. If you remove a package that depends on things (eg ubuntu-desktop) and then do an autoremove, you're going to end up removing a lot of packages.
This is often done by removing something that a big metapackage depends on. If you look at apt-cache depends ubuntu-desktop you'll see a number of Depends: ... packages. If any of these are removed, Apt has to also remove the ubuntu-desktop package. That's dependency resolution in action. If you then run an autoremove, it'll clean up all those other depends (assuming nothing else depends on them).
Occasionally you might end up in a situation where you want to install something but it conflicts with something ubuntu-desktop depends on. Apt may try to force this through by removing the conflict package (and therefore also ubuntu-desktop). It will warn you about this.
The simple fix is to find out which meta-package you're missing, and reinstall it. This is usually ubuntu-desktop. And in the future READ what apt-get tells you. I don't mean that in a nasty way. I wish I did more often. Upgrading to 14.04 I tanked my whole system back to a very basic command line and had to redownload and install over a gig of packages.
* Life, uh… finds a way™
(1)All Hotcorner functions and Window Snapping functions on my desktop stop working. After entering either of the 2 commands, the corners I selected as Window Spread will not do/show anything.
(2)The Unity icon on the Launcher disappears.
– Carlos Nov 28 '14 at 16:19autoremovemessing things up. For example removingubuntu-desktopcan have unexpected results with autoremove, or so I've heard. I can't remember if I've ever tried it myself. Not extremely likely but possible I'd say. – Seth Nov 29 '14 at 00:12sudo apt-get remove ubuntu-desktopfollowed bysudo apt-get autoremovedoes nothing. It is not really autoremove that is the problem here, rather what was removed prior to running autoremove ;) – Panther Nov 29 '14 at 02:21sudo apt-get cleanreally does not cause a problem. autoclean will not either. The source of the problem is likely either 1. some misconfiguration of unity or 2. you removed some essential package PRIOR to running autoremove. Posting information on what you did , as well as the output from those commands, would help. – Panther Nov 29 '14 at 02:53