Issue installing Citrix client in Ubuntu 64 bit

Question : When trying installing Citrix client in Ubuntu 64 bit, i got the following error:

unselected package icaclient.
 (Reading database ... 168913 files and directories currently installed.) Unpacking icaclient (from .../icaclient_12.1.0_amd64.deb) ... Setting up icaclient (12.1.0) ... dpkg: error processing icaclient (--install): subprocess installed post-installation script returned error exit status 2 Processing triggers for menu ... Errors were encountered while processing: icaclient

Solution:

To resolve the issue,  open terminal and edit  icaclient.postinst file

sudo vim /var/lib/dpkg/info/icaclient.postinst

Find

echo $Arch|grep "i[0-9]86" >/dev/null

Replace with

echo $Arch|grep -E "i[0-9]86|x86_64" >/dev/null

save  and exit

Now  run

pirat9@HP ~ $ sudo dpkg --configure icaclient
Setting up icaclient (12.1.0) ...
Processing triggers for men

Done 🙂

This  solution has  been  tested  with success  under  Ubuntu 12.04  and  Mint 13