Citrix Receiver for Linux

Citrix provide a version of their Receiver software packaged for Linux. Version 12.1 is current and is available from their website.

I’m currently running Ubuntu 11.10 64-bit (yes, I know, I intend to update soon) so I downloaded and installed the 64-bit debian package based on the CitrixICAClientHowTo. This installed with the following error:

$ sudo dpkg -i icaclient_12.1.0_amd64.deb
Selecting previously deselected package icaclient.
(Reading database ... 204950 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
Errors were encountered while processing:
icaclient

This is because the postinst script contains a function that tries to determine whether you are using an Intel or ARM type chip, and the logic used to detect Intel hasn’t been updated to include a check for x86_64 – it runs uname -m and looks for "i[0-9]86".

You can fix this by unpacking the deb and editing the regular expression in line 2648 of the postinst script to match x86_64, then rebuild the deb and install that. It works fine for me – although bear in mind the dependencies for the package: libc6-i386 (>= 2.7-1), ia32-libs, lib32z1, lib32asound2 and nspluginwrapper.

I’ve posted simple instructions for rebuilding debian packages before, but there’s lots of info out there on the web.