Image Cannot Be Modified

Error message: pkg: The image cannot be modified as it is currently in use by another package client

The error message should include the name and the PID of the package client that has the image locked, as shown in the following example:

pkg: The image cannot be modified as it is currently in use by another package
client: pkg on cbusl0406l, pid 26604.

Try your pkg command again after the current package process exits (process 26604 in this example). If the process does not exit quickly, use ptree -a, for example, to begin to examine the process.