I was trying to uninstall the package
cairo-dock. And I think I've uninstalled things I shouldnt. Now My 10.04 only starts in text mode.
What should I do to restore my GNOME desktop?
Is there any way to recover it via Live CD?
Here's what I would do:
Boot from the LiveCD, and then re-install the system without formatting the the partition so that your /home/* directory is safe.
However, as always, you should have a backup of your data.