Sunday, December 23, 2012

dpkg: error processing icaclient (--configure)

When trying to install the Citrix Receiver application (icalient) on Ubuntu 12.10 x64, ran into an issue with one of the post installation scripts (thanks Citrix!?).

You will notice that when setting up the icaclient or any package thereafter you get a post installation error as seen below:
dpkg: error processing icaclient (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
icaclient
To fix this, you have to make a simple change to the following file
/var/lib/dpkg/info/icaclient.postinst
Open the file in your favor text editor and find the following line (typically Line Num: 2648)
echo $Arch|grep "i[0-9]86" >/dev/null
Change it to the following (pay close attention to the -E, changes have been bolded)
echo $Arch|grep -E "i[0-9]86|x86_64" >/dev/null
Now the setup should complete successfully after running the following command
dpkg --configure icaclient

1 comment:

Unknown said...

Awesome quick fix! Worked first time for me... Good one Citrix for not supporting x64 properly I'm guessing?!?

Cheers again!