Problem with port upgrade

Ryan Schmidt ryandesign at macports.org
Thu Sep 16 11:08:56 PDT 2010


On Sep 16, 2010, at 12:52, Philip Neukom wrote:

> I ran "sudo port -v upgrade outdated" today before I was going to
> install a new package.
> 
> It gave out with the following error:
> 
> "Waiting for lock on
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_orc/work/.macports.orc.state

This means you were trying to run two "port" commands affecting the orc port simultaneously, from different terminal windows. This can cause things to break (though I'm not sure if this was the problem here today).

In the next version of MacPorts, this message will be changed to read:

Waiting for lock on /opt/local/var/macports/registry/.registry.lock

And MacPorts will ensure it does not work on multiple tasks simultaneously.


> Error: Unable to upgrade port: can't create directory
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_readline":
> file already exists

First, try cleaning the affected port and running the command again. So:

sudo port clean readline
sudo port upgrade readline

Does that work?

If not and you get the same message, then does that directory exist? If so, try removing it, then trying again as above.




More information about the macports-users mailing list