New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30441 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 years ago

2.0.0 port -u command fails

Reported by: wiarda@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.0.0
Keywords: Cc:
Port:

Description (last modified by ryandesign@…) (diff)

Since updating to 2.0.0 by selfupdate my port -u upgrade outdated fails to install more than one outdated port. It dies on:

--->  Uninstalling cairo @1.10.2_3
Error: Uninstall cairo @1.10.2_3 failed: error deleting "/opt/local/var/macports/software/cairo/1.10.2_3": directory not empty
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments

base-fail.txt (48.2 KB) - added by wiarda@… 3 years ago.

Change History

comment:1 in reply to: ↑ description Changed 3 years ago by wiarda@…

Replying to wiarda@…:

Since updating to 2.0.0 by selfupdate my port -u upgrade outdated fails to install more than one outdated port. It dies on:

---> Uninstalling cairo @1.10.2_3 Error: Uninstall cairo @1.10.2_3 failed: error deleting "/opt/local/var/macports/software/cairo/1.10.2_3": directory not empty To report a bug, see <http://guide.macports.org/#project.tickets>

macbook 2 GHz Intel Core Duo, OSX 10.6.8

comment:2 Changed 3 years ago by ryandesign@…

  • Keywords 2.0.0 removed
  • Type changed from update to defect
  • Description modified (diff)

Clean everything.

sudo port clean all

If any port fails to clean with a message about a directory it can't delete, delete the directory manually.

comment:3 Changed 3 years ago by jmr@…

Did your selfupdate actually succeed, or did it fail at the very end while trying to convert your images? Show the output of

sudo port -df selfupdate

Changed 3 years ago by wiarda@…

comment:4 Changed 3 years ago by wiarda@…

Thanks for that amazingly fast response. It worked and the outdated files are now uninstalled and cleaned. I attached the output of the forced selfupdate in case it is of use; I guess the original installation failed and I didn't notice.

comment:5 Changed 3 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to worksforme

Hmm, OK. It would be nice to find out why it failed the first time, but I guess we'll never know.

comment:6 Changed 3 years ago by lhl@…

Just an FYI, I've come across a similar problem after a selfupdate to 2.0.0 and upgrade on an otherwise rather normal/lightly used 1.9.2 MacPorts. After the upgrade and selfupdate, running 'port uninstall inactive' gives a 'directory not empty' error for every package. After re-running selfupdate w/ the '-df' flags, this was fixed. It seems there are a few people having similar issues post 2.0 upgrade, like #30311

Note: See TracTickets for help on using tickets.