dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with different file `/usr/lib/xorg/protocol-precise.txt', not allowed
Try the below commands,
sudo mv /usr/lib/xorg/protocol-precise.txt /usr/lib/xorg/protocol-precise.txt.bak
sudo apt-get -f install
The above commands rename that text file protocol-precise.txt
to protocol-precise.txt.bak
and fixes the dependencies.