Technical article 126132

After installing SCO OpenServer 6.0.0 MP1 pkgadd and pkgrm commands fail

OpenServer 6.0.0

Written · Last revised

Problem

After installing SCO OpenServer 6.0.0 Maint. Pack 1 (MP1), the pkgrm and pkgadd commands fail with the error below:

installf: ERROR: bad entry read in contents file pathname=/usr/bin problem=illegal value for mode

Cause

Openserver 6.0.0 MP1 has introduced a bug in the pkgrm/pkgadd utilities which causes the /var/sadm/install/contents file to become corrupted. The corruption may happen in the /tmp or /usr/bin lines of the /var/sadm/install/contents file.

Before MP1 is installed the two lines read as follows: /tmp d none 1777 root sys base /usr/bin d none 0775 root sys base

After MP1 is installed the two lines will read: /tmp d none 177777 root sys base /usr/bin d none 177777 root sys base

where 177777 is an illegal value.

Solution

This has been reported to SCO Engineering and a fix will be released in an upcoming supplement.

As a workaround manually edit the /var/sadm/install/contents file and repair the corrupted entries before running any pkg commands.

Change:
/tmp d none 177777 root sys base
to:
/tmp d none 1777 root sys base

And change: /usr/bin d none 177777 root sys base

to:
/usr/bin d none 0775 root sys base

Now, pkgadd and pkgrm commands will run successfully.

NOTE:     It is possible that on some machines /tmp will not need to be
          modified.

From the Xinuos technical article database, record 126132. Reproduced with permission. The original is at www.sco.com/ta/126132, which is reachable but blocked from search engines.

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.