Symptoms
When attempting to install a new / updated version of the diagnostic tools in DiagOS, the below behavior is observed:
root@dellemc-diag-os:~# dpkg -i dn-diags-3.45.4.9-12-2021-12-19.deb
(Reading database ... 20545 files and directories currently installed.)
Preparing to unpack dn-diags-3.45.4.9-12-2021-12-19.deb ...
Unpacking dn-diags-evans-on.deb (3.45.4.9-12) over (3.45.4.9-8) ...
Setting up dn-diags-evans-on.deb (3.45.4.9-12) ...
Platform detected N3248X [26]
Checking contents of platform config
total 8
drwxr-xr-x 2 1015 3012 4096 Feb 13 10:45 bin
drwxr-xr-x 2 1015 3012 4096 Feb 13 10:45 cfg
Copying config dir contents
cp: target '/etc/dn/diag/' is not a directory
dpkg: error processing package dn-diags-evans-on.deb (--install):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
Cause
If Diagnostic Tools are already installed on the switch, the installation will fail.You must first remove the existing Diagnostic Tools.
Resolution
If Diagnostic Tools are installed on your switch, you must first remove them using the command:
dpkg -P dn-diags-evans-on.deb
before re-installing or upgrading the Diagnostic Tools.
root@dellemc-diag-os:~# dpkg -P dn-diags-evans-on.deb
(Reading database ... 20567 files and directories currently installed.)
Removing dn-diags-evans-on.deb (3.45.4.9-12)
root@dellemc-diag-os:~# dpkg -i dn-diags-3.45.4.9-12-2021-12-19.deb
Selecting previously unselected package dn-diags-evans-on.deb.
(Reading database ... 19769 files and directories currently installed.)
Preparing to unpack dn-diags-3.45.4.9-12-2021-12-19.deb ...
Unpacking dn-diags-evans-on.deb (3.45.4.9-12) ...
Setting up dn-diags-evans-on.deb (3.45.4.9-12) ...
Platform detected N3224T [20]
Checking contents of platform config
total 8
drwxr-xr-x 2 1015 3012 4096 Feb 15 16:53 bin
drwxr-xr-x 2 1015 3012 4096 Feb 15 16:53 cfg
Copying config dir contents
Copying bin dir contents
Removing the platform archive folder
Not the Revision X00 board