Q:

Unable to install icaclient ("Errors were encountered while processing")

I tried to installed icaclient (a remote desktop application), and it failed to install for some reason. The problem is that now whenever I try to install a new application with apt-get, I get this message even of the installation succeeded:
Errors were encountered while processing:
 icaclient:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)

Although applications do get installed correctly, but the message is really annoying, and it could potentially hide other errors.

A:

IMHO icaclient isn't installed properly. If it doesn't break any dependency, try to uninstall it first with aptitude remove icaclient:i386. Also always force yourself to use aptitude instead of apt-get. It's way more "smart".

