Jul 25, 2014

removing a package on a solaris global zone hangs with the message: ## Waiting for up to <300> seconds for package administration commands to become available (another user is administering packages on zone <Zonename>

Today the attempt of removing a package in the global zone of a solaris 10
system waited for an other administration task to complete.

This is the message:

## Waiting for up to &lt;300&gt; seconds for package administration commands to become available (another user is administering packages on zone &lt;Zonename&gt;

The problem is, that there is not running any administration task.

After truss'ing I got the hint of /tmp/.ai*lock* files. I removed the file
in the global, but this didn't have any success.

The solution was available here. In every zone-filesystem there is also
a /tmp/.ai*lock* file, which was dangling around from a killed pkg-command.

After

rm /zones/*/root/tmp/.ai* 

the pkgrm command succeeded.