Fix compiz problem :
sudo rm -fr ~/.cache/compizconfig-1 sudo rm -fr ~/.compiz
Then try this if your session not loading :
sudo rm -fr ~/.Xauthority sudo rm -fr ~/.config/autostart
Reinstall compiz
sudo apt-get install --reinstall ubuntu-desktop unity compizconfig-settings-manager upstart
Finally clear the Unity Desktop :
sudo dconf reset -f /org/compiz/ setsid unity
This is how I fixed my problem hope it could be helpful to you.
问题已经解决