Jump to content


Photo

Installation error with 64-bit deb in ubuntu 12.04

Started by Citrix User , 27 April 2012 - 08:47 PM
25 replies to this topic

Citrix User Members

Citrix User
  • 1 posts

Posted 27 April 2012 - 08:47 PM

Hello, I am getting this error with the 64-bit deb receiver 12.1 in a fresh installation of 64-bit ubuntu 12.04. Any ideas?

Preparing to replace icaclient 12.1.0 (using .../icaclient_12.1.0_amd64.deb) ...
Unpacking replacement icaclient ...
Setting up icaclient (12.1.0) ...
dpkg: error processing icaclient (--install):
subprocess installed post-installation script returned error exit status 2
f

I am also getting an error with the 64-bit deb for usb support - it doesn't seem to be a valid archive.



Sam Owens Members

Sam Owens
  • 88 posts

Posted 28 April 2012 - 11:24 AM

I am getting the same problem since upgrading from 11.10. The receiver works but every time I run update manager I get this error.

I tried completely removing the client and reinstalling but I suspect something is hanging around

dpkg --remove --force-remove-reinstreq icaclient

Sam



David Gregory Members

David Gregory
  • 4 posts

Posted 30 April 2012 - 02:23 PM

I'm having the same problem. Upgraded to Lubumtu 12.04 LTS. Here's the dialog box:

Selecting previously 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



Alan Burton-Woods Members

Alan Burton-Woods
  • 23 posts

Posted 30 April 2012 - 04:46 PM

It seems to be an error in the post install script as it's only looking for "i[0-9]86" as the machine architecture.

Using "uname -m", my machine (64-bit Ubuntu 12.04) returns x86_64 and this causes the script to fail since it doesn't seem to recognise this string.

Here's what I did to get it to install:
1. Install the .deb and let it fail
2. Edit /var/lib/dpkg/info/icaclient.postinst
3. Replace the line that says +echo $Arch|grep "i[0-9]86|x86_64"+* >/dev/null (note the *-E after grep!)
4. Run dpkg --configure icaclient

I had some issues with square brackets creating this post. If they don't appear, the text for the regexp was i...left square-bracket...0-9...right square bracket...86 etc. You can see it in the source.

Edit: Yep - formatting problems.

Edited by: Alan Burton-Woods on Apr 30, 2012 12:47 PM

Edited by: Alan Burton-Woods on Apr 30, 2012 12:47 PM

Edited by: Alan Burton-Woods on Apr 30, 2012 12:48 PM



David Gregory Members

David Gregory
  • 4 posts

Posted 30 April 2012 - 06:47 PM

Thanks for the suggestion. I checked my "uname -m" and then just edited the line in icaclient.postinst to match, as follows:

echo $Arch|grep -iE "x86_64" >/dev/null

That resolved the issue.



Sam Owens Members

Sam Owens
  • 88 posts

Posted 30 April 2012 - 06:52 PM

you sir.........................are a genius!

that fixed it for me!

cheers

Sam



Stuart Naifeh Members

Stuart Naifeh
  • 1 posts

Posted 01 May 2012 - 12:51 AM

Rather than letting the install fail, you can run dpkg --unpack icaclient_12.1.0_amd64.deb, and then edit the postinst script. That will run the unstall up to the point of copying the files, but won't run the script. After you've patched the script, you can run dpkg --configure icaclient to finish the install. Note there are other bugs in that script - even after this patch is applied, it attempts to soft link a file in a non-existent help subdirectory.

Now - if I could only get an uncorrupted download of the ctxusb package, I'd be in business.



Sojin Valiyachirayil Members

Sojin Valiyachirayil
  • 1 posts

Posted 02 May 2012 - 01:14 PM

I was also facing the same issue, but the workaround mentioned above worked. Hope this will get fixed in the next release.

Edited by: sojinv on May 2, 2012 9:14 AM



Jochen Gribbohm Members

Jochen Gribbohm
  • 4 posts

Posted 21 May 2012 - 09:20 AM

Thanks !



Andreas Küffner Members
  • #10

Andreas Küffner
  • 83 posts

Posted 20 June 2012 - 07:33 PM

This totally fixed it. Thanks for sharing, this saves a lot of people a lot of work.
Kudos for you.



Pål Fredrik Kristiansen Members
  • #11

Pål Fredrik Kristiansen
  • 1 posts

Posted 15 July 2012 - 02:47 AM

http://www.unixmen.com/issue-installing-citrix-client-for-ubuntu-64-bit/

To resolve the issue, open terminal and edit icaclient.postinst file
sudo nano /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
sudo dpkg --configure icaclient

Done

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



Francois Botha Members
  • #12

Francois Botha
  • 2 posts

Posted 07 August 2012 - 05:50 PM

Although the fix above works and helped me to install Citrix Receiver on my Linux Mint 13 machine, I really think the Citrix package builders should sort this issue out on their side. Yes, the typical Linux user is a bit more geeky than the average PC user, but you can't expect all of them to go into this level of detail to get it working.

We're actually trying to roll-out Ubuntu or Mint to entry-level users who know absolutely nothing about computers (they haven't even worked on Windows. Ever). We really don't want to fix crappy issues like this all the time.

So please, Citrix package builders, give some attention to 64bit Ubuntu-based distributions and get Citrix to work smoothly.



Jason Koscinski Members
  • #13

Jason Koscinski
  • 1 posts

Posted 10 September 2012 - 12:31 PM

UPDATE: I figured out how to open and it appears that I successfully edited the file.

Then received this error:
jkoscinski@ubuntu:~$ sudo dpkg --configure icaclient
[sudo] password for jkoscinski:
Setting up icaclient (12.1.0) ...
dpkg: error processing icaclient (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
icaclient

Still looking for help!

I am newbee:

You said 2. Edit /var/lib/dpkg/info/icaclient.postinst

I have my terminal opened and cannot seem to figure HOW to edit. I have typed the following with no success

sudo nano /var/lib/dpkg/info/icaclient.postinst - this only brings up - "command not found"
Edit /var/lib/dpkg/info/icaclient.postinst - this gives me a warning "Warning: unknown mime-type for "/var/lib/dpkg/info/icaclient.postinst" -- using "application/octet-stream"

What am I doing incorrectly?

> {quote:title=abw@codan.dk wrote:}{quote}
> It seems to be an error in the post install script as it's only looking for "i[0-9]86" as the machine architecture.
>
> Using "uname -m", my machine (64-bit Ubuntu 12.04) returns x86_64 and this causes the script to fail since it doesn't seem to recognise this string.
>
> Here's what I did to get it to install:
> 1. Install the .deb and let it fail
> 2. Edit /var/lib/dpkg/info/icaclient.postinst
> 3. Replace the line that says +echo $Arch|grep "i[0-9]86|x86_64"+* >/dev/null (note the *-E after grep!)
> 4. Run dpkg --configure icaclient
>
> I had some issues with square brackets creating this post. If they don't appear, the text for the regexp was i...left square-bracket...0-9...right square bracket...86 etc. You can see it in the source.
>
> Edit: Yep - formatting problems.
>
> Edited by: Alan Burton-Woods on Apr 30, 2012 12:47 PM
>
> Edited by: Alan Burton-Woods on Apr 30, 2012 12:47 PM
>
> Edited by: Alan Burton-Woods on Apr 30, 2012 12:48 PM
You said

Edited by: jkoscinski on Sep 10, 2012 9:12 AM

Attached Files



Peter Cantwell Members
  • #14

Peter Cantwell
  • 11 posts

Posted 21 September 2012 - 02:44 AM

Did you get an answer? You missed a space after the command: nano.



Hugo Sanchez Members
  • #15

Hugo Sanchez
  • 5 posts

Posted 14 November 2012 - 09:00 PM

I am running LinuxMint release 13 64 bits - kernel linux 3.2.0-23-generic and this comment help me to solve my issue. Thanks.



André Kjellstrup Members
  • #16

André Kjellstrup
  • 2 posts

Posted 02 February 2013 - 07:44 PM

thanks to a smart user, there's a solution.
but look how long this bug have been annoying people !! Is Citrix unable to fix such a trivail bug ?
what's the point of still serving a buggy package ?
It's hard to trust such company. !



Maris Dembovskis Members
  • #17

Maris Dembovskis
  • 6 posts

Posted 10 April 2013 - 07:54 AM

TODAY IS 10. APRIL. 2013.

STILL BUGGY, PACKAGE FOR 64 BIT HAS NOT BEEN FIXED!

ERROR:
root@zg-PORTEGE-Z830:/home/andre/Downloads# dpkg --configure icaclient
Setting up icaclient (12.1.0) ...
dpkg: error processing icaclient (--configure):
subprocess installed post-installation script returned error exit status 2



Maris Dembovskis Members
  • #18

Maris Dembovskis
  • 6 posts

Posted 10 April 2013 - 09:02 AM

ONE MORE BUG!! (for 64 bit systems)

When thanks to Alan Burton-Woods you install successfully the citrix receiver!
You want to start it, but it says it does not have libXm.so.4 installed, however this lib is installed!!!!!

Seems that Citrix is looking in /usr/lib directory for libXm.so.4, but for 64.bit systems libXm.so.4 is istalled in /usr/lib/x86_64-linux-gnu/libXm.so.4 (for Ubuntu 12.10 64 bit version). and Citrix misses it!
So Citrix Receiver says:
error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory

And it is not true!!!!



André Kjellstrup Members
  • #19

André Kjellstrup
  • 2 posts

Posted 10 April 2013 - 09:08 AM

If Citrix aims to appear as ignorant - it's a success !
Otherwise they would not only fix the packages, but also add them to Ubuntu software center !



Maris Dembovskis Members
  • #20

Maris Dembovskis
  • 6 posts

Posted 10 April 2013 - 12:15 PM

Installed afte 6 hours ...
Ended up with 32 bit version citrix and 32 bit force architecture deb. libmotif4. on 64 bit machine