First:

login as root or use su - to obtain root access

then:

cd /var/cache/apt/archives

then:

dpkg -i --force-overwrite package-name_version-number.deb

use the package-name_version-number.deb for the offending package, from your posts it looks like you should use:

dpkg -i --force-overwrite libxcursor-dev_1.0.2-2_i386.deb

The force command should be: --force-option

the -- before force is needed...


Note: you may need to use this on occasion (but be warned you may mess up your system if used improperly), maybe upgrading KDE, etc. what causes this is a particular file is needed by two different packages, and included in both so each can function, when the file is installed from one package, then dpkg errors out when you try and install the second package containing the same file.

HTH

~rock