Technical article 109370

When installing a supplement I get "Error: the patch could not be applied to SCO: Unix 5.0.X. component is in an invalid state."

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5

Written · Last revised

Problem

During the installation of a system supplement, I get this error:

Error: the patch could not be applied to SCO: Unix 5.0.X. component is in an invalid state.

I click on "details" and get "is corrupt".

At this point, I am unable to complete the installation or remove the portion that has been installed.

Cause

If a previous custom installation was forcefully aborted (by a
power outage, crash, SIGKILL, and so on) it can leave the software
databases in an inconsistent state. This will sometimes cause
custom to flag a component as "CORRUPT". When this happens, the
software manager will not allow any changes to that component.

In many cases, the component is not actually corrupt. Therefore, to fix the problem, find the components with the CORRUPT flag set and remove that flag. If this does not allow a successful patch installation (or removal) and relink of the kernel, the system may have to be reinstalled.

Solution

Invoke the Software Manager (custom(ADM)) utility.  Choose
choose Software -> Verify System -> Normal system state
(Thorough).  This operation, in addition to performing an
integrity check of the system files' size, checksum, and other
attributes, automatically removes "CORRUPT" flags from the custom
database files.

Alternatively, you can find out exactly which components have been flagged as "CORRUPT" and fix the occurences manually. To see which components have been flagged as "CORRUPT", type the commands:

# cd /opt/K/SCO
# for i in `ls`
  do
    grep CORRUPT $i/*/.softmgmt/*
  done

Take note of all the files listed. Manually edit each of the files, search for the word "CORRUPT", remove it, save and exit the file.

You can now attempt to remove or apply patches to the components. Again, if the kernel does not relink cleanly after making these changes, and the component marked corrupt was "Unix", you may have to reinstall the system.

From the Xinuos technical article database, record 109370. Reproduced with permission. The original is at www.sco.com/ta/109370, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.