upgrade problems: port uninstall failed: directory not empty
Freek Dijkstra
software at macfreek.nl
Mon Nov 14 04:28:05 PST 2011
Hi,
I just moved to Mac OS 10.7 (Lion), and naturally did a `port
selfupdate` followed by a `port upgrade outdated`.
I'm having problems with `port upgrade outdated`. So far I got over 20
reports such as the following:
Error: port uninstall failed: error deleting
"/opt/local/var/macports/software/subversion/1.6.5_0": directory not empty
or
Error: port uninstall failed: error deleting
"/opt/local/var/macports/software/gettext/0.17_4": directory not empty
To remedy this problem, I first did:
port clean --all installed
followed by
port uninstall inactive
However, `port uninstall inactive` gives the same problems.
I'm running all commands as root; manually `rm -rf` the affected
directories works fine, but is very tedious.
I did search the mailing list, and found some remarks about changes in
the privilege system. The suggestion was that the privilege was dropped,
so that ports was permitted to remove some folders.
Indeed, everything in /opt/local/var/macports/software is owned by
root:admin, but I would not know what owner to change it to, and if that
helps.
Details:
~# port installed gettext
The following ports are currently installed:
gettext @0.17_4
gettext @0.18.1.1_0
gettext @0.18.1.1_2 (active)
gettext @0.18.1.1_2+universal
~# port -d uninstall gettext @0.17_4
DEBUG: no portfile in registry for gettext @0.17_4
---> Uninstalling gettext @0.17_4
DEBUG: error deleting "/opt/local/var/macports/software/gettext/0.17_4":
directory not empty
while executing
"file delete $imagefile"
(procedure "uninstall" line 161)
invoked from within
"uninstall $portname $version $revision $variants $optionslist"
(procedure "registry_uninstall::uninstall_composite" line 5)
invoked from within
"registry_uninstall::uninstall_composite $portname $composite_version
[array get options]"
Error: port uninstall failed: error deleting
"/opt/local/var/macports/software/gettext/0.17_4": directory not empty
~# find /opt/local/var/macports/software/gettext/0.17_4 | head -10
/opt/local/var/macports/software/gettext/0.17_4
/opt/local/var/macports/software/gettext/0.17_4/opt
/opt/local/var/macports/software/gettext/0.17_4/opt/local
/opt/local/var/macports/software/gettext/0.17_4/opt/local/bin
/opt/local/var/macports/software/gettext/0.17_4/opt/local/bin/autopoint
/opt/local/var/macports/software/gettext/0.17_4/opt/local/bin/envsubst
/opt/local/var/macports/software/gettext/0.17_4/opt/local/bin/gettext
/opt/local/var/macports/software/gettext/0.17_4/opt/local/bin/gettext.sh
/opt/local/var/macports/software/gettext/0.17_4/opt/local/bin/gettextize
/opt/local/var/macports/software/gettext/0.17_4/opt/local/bin/msgattrib
~# whoami
root
~# ls -lad /opt/local/var/macports/software
drwxr-xr-x 330 root admin 11220 14 Nov 11:33
/opt/local/var/macports/software/
~# port version
Version: 2.0.3
~# uname -v
Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011;
root:xnu-1699.24.8~1/RELEASE_X86_64
Any help is kindly appreciated.
Freek Dijkstra
More information about the macports-users
mailing list