Solaris 11 and Later - 'pkg update' Fails With: OSError: (Doc ID 2076001.1)

Last updated on JULY 29, 2016

Applies to:

Solaris Operating System - Version 11 11/11 and later
Information in this document applies to any platform.

Symptoms

pkg update or pkg uninstall fails with error OSError:

The shown errno and target name can vary.

From errno.h:
#define    ENOENT    2    /* No such file or directory        */
#define    ENOTDIR    20    /* Not a directory            */

Example error messages below:

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms