Usb redirection failure due BUG in chkconfig

Having trouble using usb redirection in vmware-horizon-client.

Figured out that (unlike in other distributions) the vmware-horizon-usb service cannot be executed due to missing chkconfig package.

Turns out that this package has a bug and I am unable to install it.

Is there any workaround?

Otherwise, my (first-day) install on an old HP z620 given as surplus has been flawless.

Thanks, would appreciate help if possible.

time sudo dnf install chkconfig
[sudo] password for XXXX
Last metadata expiration check: 0:47:59 ago on Sat 29 Oct 2022 10:22:11 PM CDT.
Dependencies resolved.
=================================================================================================
 Package                Architecture        Version                    Repository           Size
=================================================================================================
Installing:
 chkconfig              x86_64              1.20-2.el9                 baseos              162 k

Transaction Summary
=================================================================================================
Install  1 Package

Total download size: 162 k
Installed size: 764 k
Is this ok [y/N]: y
Downloading Packages:
chkconfig-1.20-2.el9.x86_64.rpm                                  327 kB/s | 162 kB     00:00    
-------------------------------------------------------------------------------------------------
Total                                                            199 kB/s | 162 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                         1/1 
  Installing       : chkconfig-1.20-2.el9.x86_64                                             1/1 
Error unpacking rpm package chkconfig-1.20-2.el9.x86_64
  Verifying        : chkconfig-1.20-2.el9.x86_64                                             1/1 

Failed:
  chkconfig-1.20-2.el9.x86_64                                                                    

Error: Transaction failed

real	0m12.617s
user	0m2.086s
sys	0m0.371s

chkconfig can be installed without issue in a standard Rocky Linux 9. Maybe more details about the error in /var/log/dnf.log?

Thank you most kindly olista…

Here is the loginfo:

2022-10-30T09:06:50-0500 DDEBUG Command: dnf install chkconfig 
2022-10-30T09:06:50-0500 DDEBUG Installroot: /
2022-10-30T09:06:50-0500 DDEBUG Releasever: 9
2022-10-30T09:06:50-0500 DEBUG cachedir: /var/cache/dnf
2022-10-30T09:06:50-0500 DDEBUG Base command: install
2022-10-30T09:06:50-0500 DDEBUG Extra commands: ['install', 'chkconfig']
2022-10-30T09:06:50-0500 DEBUG User-Agent: constructed: 'libdnf (Rocky Linux 9.0; generic; Linux.
x86_64)'
2022-10-30T09:06:50-0500 DEBUG repo: using cache for: cuda-rhel9-x86_64
2022-10-30T09:06:50-0500 DEBUG cuda-rhel9-x86_64: using metadata from Fri 21 Oct 2022 06:01:31 PM CDT.
2022-10-30T09:06:50-0500 DEBUG repo: using cache for: epel
2022-10-30T09:06:50-0500 DEBUG epel: using metadata from Sat 29 Oct 2022 01:45:42 PM CDT.
2022-10-30T09:06:50-0500 DEBUG repo: using cache for: epel-next
2022-10-30T09:06:50-0500 DEBUG epel-next: using metadata from Fri 14 Oct 2022 08:12:24 AM CDT.
2022-10-30T09:06:50-0500 DEBUG repo: using cache for: baseos
2022-10-30T09:06:50-0500 DEBUG baseos: using metadata from Tue 25 Oct 2022 04:14:51 PM CDT.
2022-10-30T09:06:50-0500 DEBUG repo: using cache for: appstream
2022-10-30T09:06:50-0500 DEBUG appstream: using metadata from Fri 28 Oct 2022 12:03:10 AM CDT.
2022-10-30T09:06:50-0500 DEBUG repo: using cache for: crb
2022-10-30T09:06:50-0500 DEBUG crb: using metadata from Mon 24 Oct 2022 10:41:04 AM CDT.
2022-10-30T09:06:50-0500 DEBUG repo: using cache for: extras
2022-10-30T09:06:50-0500 DEBUG extras: using metadata from Tue 30 Aug 2022 04:33:21 AM CDT.
2022-10-30T09:06:50-0500 DEBUG repo: using cache for: rpmfusion-free-updates
2022-10-30T09:06:50-0500 DEBUG rpmfusion-free-updates: using metadata from Fri 28 Oct 2022 12:00:24 PM CDT.
2022-10-30T09:06:50-0500 DEBUG repo: using cache for: rpmfusion-nonfree-updates
2022-10-30T09:06:50-0500 DEBUG rpmfusion-nonfree-updates: using metadata from Fri 28 Oct 2022 12:05:47 PM CDT.
2022-10-30T09:06:50-0500 INFO Last metadata expiration check: 0:30:07 ago on Sun 30 Oct 2022 08:36:43 AM CDT.
2022-10-30T09:06:50-0500 DDEBUG timer: sack setup: 602 ms
2022-10-30T09:06:50-0500 DEBUG ---> Package chkconfig.x86_64 1.20-2.el9 will be installed
2022-10-30T09:06:50-0500 DEBUG --> Finished dependency resolution
2022-10-30T09:06:50-0500 DDEBUG timer: depsolve: 38 ms
2022-10-30T09:06:50-0500 INFO Dependencies resolved.
2022-10-30T09:06:50-0500 INFO =================================================================================================
 Package                Architecture        Version                    Repository           Size
=================================================================================================
Installing:
 ESC[1mESC[32mchkconfig             ESC(BESC[m x86_64              1.20-2.el9                 baseos              162 k

Transaction Summary
=================================================================================================
Install  1 Package

2022-10-30T09:06:50-0500 INFO Total download size: 162 k
2022-10-30T09:06:50-0500 INFO Installed size: 764 k
2022-10-30T09:06:57-0500 INFO Downloading Packages:
2022-10-30T09:06:58-0500 INFO -------------------------------------------------------------------------------------------------
2022-10-30T09:06:58-0500 INFO Total                                                            208 kB/s | 162 kB     00:00     
2022-10-30T09:06:58-0500 DEBUG Using rpmkeys executable at /bin/rpmkeys to verify signatures
2022-10-30T09:06:58-0500 INFO Running transaction check
2022-10-30T09:06:58-0500 INFO Transaction check succeeded.
2022-10-30T09:06:58-0500 INFO Running transaction test
2022-10-30T09:06:58-0500 INFO Transaction test succeeded.
2022-10-30T09:06:58-0500 DDEBUG timer: transaction test: 147 ms
2022-10-30T09:06:58-0500 INFO Running transaction
2022-10-30T09:06:58-0500 DDEBUG RPM transaction start.
2022-10-30T09:06:58-0500 DDEBUG RPM transaction over.
2022-10-30T09:06:58-0500 DEBUG Errors occurred during transaction.
2022-10-30T09:06:59-0500 DDEBUG timer: verify transaction: 227 ms
2022-10-30T09:06:59-0500 DDEBUG timer: transaction: 682 ms
2022-10-30T09:06:59-0500 DEBUG Completion plugin: Generating completion cache...
2022-10-30T09:06:59-0500 DEBUG Failed: chkconfig-1.20-2.el9.x86_64
2022-10-30T09:06:59-0500 DDEBUG Cleaning up.
2022-10-30T09:06:59-0500 DDEBUG /var/cache/dnf/baseos-522ed8e2b2f761ff/packages/chkconfig-1.20-2.el9.x86_64.rpm removed
2022-10-30T09:06:59-0500 SUBDEBUG 
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 67, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 106, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 130, in cli_run
    ret = resolving(cli, base)
  File "/usr/lib/python3.9/site-packages/dnf/cli/main.py", line 176, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python3.9/site-packages/dnf/cli/cli.py", line 264, in do_transaction
    raise dnf.exceptions.Error(_('Transaction failed'))
dnf.exceptions.Error: Transaction failed
2022-10-30T09:06:59-0500 CRITICAL Error: Transaction failed


Are you sure ‘vmware-horizon-client’ is in the official Rocky repos, and if not, how do you know it’s compatible with Rocky? How did you try to install ‘vmware-horizon-client’?

@tortuga dnf.log does not tell what the error is. Look if there is something interesting in /var/log/dnf.rpm.log.

this the output olista:

2022-10-31T18:15:39-0500 SUBDEBUG Installed: chkconfig-1.20-2.el9.x86_64
2022-10-31T18:15:39-0500 ERROR Error unpacking rpm package chkconfig-1.20-2.el9.x86_64

could this be just a corrupted rpm file? if so, how to purge it?

You can do sudo dnf clean all and try to install.

It seems that something is blocking the rpm installation. Try to install directly with the rpm command:

sudo dnf download chkconfig
sudo rpm -v --install ./chkconfig-1.20-2.el9.x86_64.rpm

If the cause is not shown, then run it again with -vv instead of -v. A lot of logs will be displayed.

I would recommend removing the horizon client entirely and trying to install chkconfig after. It is likely the horizon client installation deployed files it shouldn’t have and the chkconfig package can’t install as a result. Once chkconfig is installed, the horizon client can be installed after.

1 Like

absolutely brilliant advice nazunalika – worked perfectly!!

sorry it took me a couple of days - i was offsite at work.

time sudo dnf install chkconfig
Last metadata expiration check: 0:01:26 ago on Wed 02 Nov 2022 09:12:45 PM CDT.
Package chkconfig-1.20-2.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!