How to install dell command and configure tool on dell inspiron 5520 running ubuntu 20.4?

I am trying to install dell command and configure on my dell inspiron 5520 runing ubuntu 20.04 os. I am following this instruction.

When I execute

sudo dpkg -i srvadmin-hapi_9.5.0_amd64.deb

I get following error:

(Reading database ... 654921 files and directories currently installed.)
Preparing to unpack srvadmin-hapi_9.5.0_amd64.deb ...
Unpacking srvadmin-hapi (9.5.0) over (9.5.0) ...
Setting up srvadmin-hapi (9.5.0) ...
Job for instsvcdrv.service failed because the control process exited with error code.
See "systemctl status instsvcdrv.service" and "journalctl -xe" for details.
dpkg: error processing package srvadmin-hapi (--install):
 installed srvadmin-hapi package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Errors were encountered while processing:
 srvadmin-hapi

I executed

systemctl status instsvcdrv.service

Output:

instsvcdrv.service - Systems Management Device Drivers
     Loaded: loaded (/etc/systemd/system/instsvcdrv.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2021-08-24 13:23:14 IST; 3min 14s ago
    Process: 762908 ExecStart=/usr/libexec/instsvcdrv-helper start (code=exited, status=155)
    
Aug 24 13:23:14 xxxx systemd[1]: Starting Systems Management Device Drivers...
Aug 24 13:23:14 xxxx systemd[1]: instsvcdrv.service: Control process exited, code=exited, status=155/n/a
Aug 24 13:23:14 xxxx systemd[1]: instsvcdrv.service: Failed with result 'exit-code'.
Aug 24 13:23:14 xxxx systemd[1]: Failed to start Systems Management Device Drivers.

I executed

journalctl -xe

Output:

-- Subject: A start job for unit [email protected] has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit [email protected] has begun execution.
-- 
-- The job identifier is 2641966.
Aug 24 13:31:48 xxxx ovpn-server[764772]: Options error: --ca fails with 'ca.crt': No such file or directory (errno=2)
Aug 24 13:31:48 xxxx ovpn-server[764772]: Options error: --cert fails with 'server.crt': No such file or directory (errno=2)
Aug 24 13:31:48 xxxx ovpn-server[764772]: WARNING: cannot stat file 'server.key': No such file or directory (errno=2)
Aug 24 13:31:48 xxxx ovpn-server[764772]: Options error: --key fails with 'server.key': No such file or directory (errno=2)
Aug 24 13:31:48 xxxx ovpn-server[764772]: WARNING: cannot stat file 'ta.key': No such file or directory (errno=2)
Aug 24 13:31:48 xxxx ovpn-server[764772]: Options error: --tls-auth fails with 'ta.key': No such file or directory (errno=2)
Aug 24 13:31:48 xxxx ovpn-server[764772]: Options error: Please correct these errors.
Aug 24 13:31:48 xxxx ovpn-server[764772]: Use --help for more information.
Aug 24 13:31:48 xxxx systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- An ExecStart= process belonging to unit [email protected] has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
Aug 24 13:31:48 xxxx systemd[1]: [email protected]: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- The unit [email protected] has entered the 'failed' state with result 'exit-code'.
Aug 24 13:31:48 xxxx systemd[1]: Failed to start OpenVPN connection to server.
-- Subject: A start job for unit [email protected] has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit [email protected] has finished with a failure.
-- 
-- The job identifier is 2641966 and the job result is failed.

BIOS Information

Vendor: Dell Inc.
Version: A11
Release Date: 10/03/2012
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 4608 kB
Characteristics:
    PCI is supported
    PNP is supported
    BIOS is upgradeable
    BIOS shadowing is allowed
    Boot from CD is supported
    Selectable boot is supported
    EDD is supported
    Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
    Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
    5.25"/360 kB floppy services are supported (int 13h)
    5.25"/1.2 MB floppy services are supported (int 13h)
    3.5"/720 kB floppy services are supported (int 13h)
    3.5"/2.88 MB floppy services are supported (int 13h)
    Print screen service is supported (int 5h)
    8042 keyboard services are supported (int 9h)
    Serial services are supported (int 14h)
    Printer services are supported (int 17h)
    CGA/mono video services are supported (int 10h)
    ACPI is supported
    USB legacy is supported
    Smart battery is supported
    BIOS boot specification is supported
    Function key-initiated network boot is supported
    Targeted content distribution is supported
    UEFI is supported
Firmware Revision: 1.1

System Information

Manufacturer: Dell Inc.
Product Name: Inspiron 5520
Version: A11
Serial Number: XXXXXXX
UUID: X-X-X-X-X
Wake-up Type: Power Switch
SKU Number: xxx123x#ABA
Family: 103C_5335KV

How do I resolve these issues and install the tool successfully?


Solution 1:

Dell likes to make this difficult for people. You'll need to create a srvadmin-hapi.postinst file with a little hack and then try installing again.

Here's how:

  1. Create a post-installation file in /var/lib/dpkg/info:
    sudo vi /var/lib/dpkg/info/srvadmin-hapi.postinst 
    
    Note: Use any text editor you like. The use of vi here is more muscle memory than an endorsement.
  2. Paste the following into the file:
    #!/bin/bash
    /bin/true
    
  3. Run the installation again:
    sudo dpkg --configure -a
    sudo apt install srvadmin-hapi
    

If the installation fails again, then there's an errant record in /var/lib/dpkg/status that needs to be edited:

  1. Edit the status file:
    sudo vi /var/lib/dpkg/status 
    
  2. Find the line for srvadmin-hapi and remove it (along with its description)
  3. Do the installation again:
    sudo dpkg --configure -a
    sudo apt install srvadmin-hapi
    

This should give you what you need.