エラーメッセージ: pkg: The image cannot be modified as it is currently in use by another package client
次の例に示すように、エラーメッセージには、イメージがロックされているパッケージクライアントの名前と PID が含まれているはずです。
pkg: The image cannot be modified as it is currently in use by another package client: pkg on cbusl0406l, pid 26604.
現在のパッケージ処理 (この例では処理 26604) が終了したあとで pkg コマンドを再試行してください。処理がすぐに終了しない場合、たとえば ptree -a を使用して、処理の調査を開始します。