Categories
Tech Encounters

Omnissa Horizon Client 2412 fail to install on Ubuntu 24.04

ISSUE

$ sudo apt install ./Omnissa-Horizon-Client-2412-8.14.0-12437214089.x64.deb
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting ‘omnissa-horizon-client’ instead of ‘./Omnissa-Horizon-Client-2412-8.14.0-12437214089.x64.deb’
The following NEW packages will be installed:
omnissa-horizon-client
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/176 MB of archives.
After this operation, 686 MB of additional disk space will be used.
Get:1 /tmp/Omnissa-Horizon-Client-2412-8.14.0-12437214089.x64.deb omnissa-horizon-client amd64 2412-8.14.0-12437214089 [176 MB]
Selecting previously unselected package omnissa-horizon-client.
(Reading database … 386361 files and directories currently installed.)
Preparing to unpack …/Omnissa-Horizon-Client-2412-8.14.0-12437214089.x64.deb …
Unpacking omnissa-horizon-client (2412-8.14.0-12437214089) …
Setting up omnissa-horizon-client (2412-8.14.0-12437214089) …
Migrating global configurations…
Migrating per-user configurations…
dpkg: error processing package omnissa-horizon-client (–configure):
installed omnissa-horizon-client package post-installation script subprocess returned error exit status 1
Processing triggers for desktop-file-utils (0.27-2build1) …
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) …
Processing triggers for mailcap (3.70+nmu1ubuntu1) …
Errors were encountered while processing:
omnissa-horizon-client
E: Sub-process /usr/bin/dpkg returned an error code (1)

ROOT CAUSE

The installer’s post-installation script at “DEBIAN/postinst” has this line:

if [ “$uid” -ge 1000 ] && [ “$username” != “nobody” ] && [ “$shell” != “/usr/sbin/nologin” ] && [ “$shell” != “/bin/false” ]; then

It should be:

if [ “$uid” -ge 1000 ] && [ “$username” != “nobody” ] && [ “$shell” != “/usr/sbin/nologin” ] && [ “$shell” != “/bin/false” ] && [ “$home_dir” != “/nonexistent” ]; then

3 replies on “Omnissa Horizon Client 2412 fail to install on Ubuntu 24.04”

Hello,

oh my god. this finally solved this super annoying problem.
I was able to run through all steps using the following package from Omnissa: Omnissa-Horizon-Client-2503-8.15.0-14256322247.x64.deb

I didn´t get the error messaged which was pesting me before.
King of a shame that Omnissa is unable to resolve this topic even when some people are experiencing the same issue.
Thanks for the help! 🙂

Hello,

I have read the same suggestion somewhere else but even after making the change in DEBIAN/postinst I get the same bad result during installation.

Steps to reproduce:
1. Download omnissa horizon client Omnissa-Horizon-Client-2503-8.15.0-14256322247.x64.deb
2. Open the .deb using mc, copying the DEBIAN/postinst script into another directory
3. Edit this script
4. edit the line which has /usr/sbin/nologin in it (in my case it is on line 74)
5. Change line to:
if [ “$uid” -ge 1000 ] && [ “$username” != “nobody” ] && [ “$shell” != “/usr/sbin/nologin” ] && [ “$shell” != “/bin/false” ]; then
6. save file and copy it back into the .deb using mc and replacing the existing file
7. try to (re)install with: sudo apt install ./Omnissa-Horizon-Client-2503-8.15.0-14256322247.x64.deb

I still get the same error message after installation.

Am I missing something there?
I think it is a shame that a company like broadcom is unable to have this fixed, even more as Ubuntu 24.04 LTS is a widen used and well established distro.

regards

Phil.

These steps work for me in bash:

sudo -i

mkdir -m700 /tmp/deb-fix && cd /tmp/deb-fix

Download the .deb file into /tmp/deb-fix (from https://www.vmware.com/go/viewclients#linux64)

deb=Omnissa*.deb

dpkg-deb -R $deb extracted

Edit extracted/DEBIAN/postinst

» FROM: if [ “$uid” -ge 1000 ] && [ “$username” != “nobody” ] && [ “$shell” != “/usr/sbin/nologin” ] && [ “$shell” != “/bin/false” ]; then

» TO: if [ “$uid” -ge 1000 ] && [ “$username” != “nobody” ] && [ “$shell” != “/usr/sbin/nologin” ] && [ “$shell” != “/bin/false” ] && [ “$home_dir” != “/nonexistent” ]; then

dpkg-deb -b extracted fixed.deb

apt remove omnissa-horizon-client

dpkg -i fixed.deb

Leave a Reply

Your email address will not be published. Required fields are marked *