Opened 13 years ago

Closed 13 years ago

#30356 closed defect (worksforme)

Port 2.0.0 port upgrade fails

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

Description (last modified by jmroot (Joshua Root))

I moved to Mac OS Lion and updated port to 2.0.0. Everything went smoothly. But now I am unable to do: port upgrade outdated (does not work for any package). I get errors like:

--->  Cleaning perl5.12
--->  Unable to uninstall perl5.12 @5.12.3_1, the following ports depend on it:
--->  	perl5 @5.12.3_1+perl5_12
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Uninstalling perl5.12 @5.12.3_1
Error: Uninstall perl5.12 5.12.3_1 failed: error deleting "/opt/local/var/macports/software/perl5.12/5.12.3_1": directory not empty

Change History (6)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Component: portsbase
Description: modified (diff)

Looks like the last part of the selfupdate failed; the port image should be an archive, not a directory. Show the output of

sudo port -df selfupdate

comment:2 Changed 13 years ago by jmroot (Joshua Root)

But actually, if you moved to Lion, you followed the Migration procedure, right?

comment:3 Changed 13 years ago by blattnem@…

thanx. The last output from sudo port -df selfupdate:

[ ! -f /opt/local/etc/macports/mp_version ] || rm -vf /opt/local/etc/macports/mp_version
/usr/bin/install -c -o root -g admin -m 444 setupenv.bash  /opt/local/share/macports/
/usr/bin/install -c -o root -g admin -m 444 macports-pubkey.pem  /opt/local/share/macports/
/usr/bin/tclsh src/upgrade_sources_conf_default.tcl "/opt/local"
/usr/bin/tclsh src/images_to_archives.tcl "/opt/local/share/macports/Tcl"
This could take a while...

Seems that the "while" means infinity.....

comment:4 in reply to:  3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to blattnem@…:

thanx. The last output from sudo port -df selfupdate:

Please use WikiFormatting.

Seems that the "while" means infinity.....

Obviously it doesn't mean infinity. It just means awhile. It depends how many ports you have installed and how large they are. Wait.

comment:5 Changed 13 years ago by blattnem@…

...fixed. thnx....

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.