Technical article 111763

Running pkgadd on OpenServer 5.0.5, 5.0.6, I get "installf: ERROR: bad entry read in contents file".

OpenServer 5.0.6

Written · Last revised

Problem

When I run pkgadd in SCO OpenServer Enterprise 5.0.5 or 5.0.6, I get the following error if the "mode" for a file in the pkgmap file for my product is a "?":

installf: ERROR: bad entry read in contents file pathname=(path to file in question) problem=illegal value for mode

Then I get a message that the package installation partially failed.

Cause

According to the manual page on pkgmap(F), if a regular file targeted in the pkgmap file has a "?" in the mode (permissions) field then the file's permissions should go unchanged. Instead the "?" is not being recognized as a valid value which results in the error.

Solution

As a temporary workaround, edit the pkgmap file. To do this, take the following steps:

1. Note the path and name of the regular file in the error message.

2. Do a listing of the regular file in its path and note the permissions.

3. Edit the pkgmap file for the package and locate the line of the
regular file in question.  For example:

1 e build /etc/conf/cf.d/init.base ? ? ? 395 31410 918744517

The "mode" field is the first "?".

4. Replace the first "?" with the permissions of the regular
file and add a leading "0".  For example:

1 e build /etc/conf/cf.d/init.base 0644 ? ? 395 31410 918744517

5. Save the file and run pkgadd to install the package again.

NOTE:     The steps taken in this temporary workaround may need to be run
          more than once if there are several regular files that are
          resulting in error.

See also

The manual page for pkgmap(F).

From the Xinuos technical article database, record 111763. Reproduced with permission. The original is at www.sco.com/ta/111763, 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.