My Oracle Support Banner

pkg update operation failed with OSError: [Errno 17] File exists (Doc ID 2798604.1)

Last updated on AUGUST 12, 2021

Applies to:

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

Symptoms

The following command:

pkg update --accept --be-name SRU_11.4.34.0.1 entire@11.4-11.4.34.0.1.94.4

 

Failed with:

PHASE ITEMS
Removing old actions 119762/119762
Installing new actions 19644/135117
The running system has not been modified. Modifications were only made to a clone of the running system. This clone is mounted at /tmp/tmp8kZwNq should you wish to inspect it.
pkg: An unexpected error happened during update: [Errno 17] File exists
Traceback (most recent call last):
File "/usr/bin/pkg", line 6702, in handle_errors
__ret = func(*args, **kwargs)
File "/usr/bin/pkg", line 6688, in main_func
pargs=pargs, **opts)
File "/usr/bin/pkg", line 2115, in update
update_index=update_index)
File "/usr/bin/pkg", line 1790, in __api_op
ret_code = __api_execute_plan(_op, _api_inst)
File "/usr/bin/pkg", line 1358, in __api_execute_plan
api_inst.execute_plan()
File "/usr/lib/python2.7/vendor-packages/pkg/client/api.py", line 2811, in execute_plan
self._img.imageplan.execute()
File "/usr/lib/python2.7/vendor-packages/pkg/client/imageplan.py", line 4710, in execute
p.execute_install(src, dest)
File "/usr/lib/python2.7/vendor-packages/pkg/client/pkgplan.py", line 587, in execute_install
dest.install(self, src)
File "/usr/lib/python2.7/vendor-packages/pkg/actions/directory.py", line 196, in install
pkgplan.salvage_from(salvage_from, path)

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.