Compiz / Unity very unstable, crashing very often on 12.04 [closed]

Solution 1:

I had these and other problems in compiz. You can find a bug report here. In short, the solution to that particular bug was to install an alternative, older version of the packages:

sudo apt-add-repository ppa:vanvugt/compiz-preproposed
sudo apt-get update
sudo apt-get install compiz=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-core=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-gnome=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-plugins=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-plugins=1:0.9.7.8-0ubuntu1vvpreproposed2 compiz-plugins-default=1:0.9.7.8-0ubuntu1vvpreproposed2 libdecoration0=1:0.9.7.8-0ubuntu1vvpreproposed2

Restart compiz:

compiz --replace &

If that does not work better for you, the packages will be replaced during the next system update. Or just do

apt-get update
apt-get dist-upgrade

If, however, you have better experience with that older package (that was my case), you can make the change more permanent ("pin" the package at a certain version). For this, install synaptic:

apt-get install synaptic

Synaptic is an alternate package manager that also allows to pin the packages.

Alternatively, you can run:

{ echo compiz hold ; echo compiz-core hold ; echo compiz-plugins hold ; echo compiz-gnome hold ; echo compiz-plugins-default hold ; echo libdecoration0 hold ; } | sudo dpkg --set-selections