Estoy cometiendo un error al intentar desinstalar algunos paquetes en mi instalación de MacPorts 2.0.3, y no puedo averiguar qué los está causando o cómo resolverlos. Buscar en Google no conduce a nada que aborde este caso, por lo que espero que otros usuarios tengan una respuesta.
Aquí hay un ejemplo del comando y el error (cuando todo esto se hace en un shell sudo'ed, por lo que el problema no está relacionado con los permisos de raíz):
port uninstall sleuthkit ---> Deactivating sleuthkit @3.2.3_0+universal Error: Target org.macports.deactivate returned: this entry does not own the given file Log for sleuthkit is at: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_sleuthkit_3.2.3_0+universal/sleuthkit/main.log Warning: Failed to execute portfile from registry for sleuthkit @3.2.3_0+universal ---> Deactivating sleuthkit @3.2.3_0+universal Error: Target org.macports.uninstall returned: this entry does not own the given file Warning: Failed to execute portfile from registry for sleuthkit @3.2.3_0+universal ---> Deactivating sleuthkit @3.2.3_0+universal Error: Target org.macports.deactivate returned: this entry does not own the given file Log for sleuthkit is at: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_sleuthkit_3.2.3_0+universal/sleuthkit/main.log Warning: Failed to execute portfile from registry for sleuthkit @3.2.3_0+universal ---> Deactivating sleuthkit @3.2.3_0+universal Error: port uninstall failed: this entry does not own the given file
Buscar en el archivo /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_sleuthkit_3.2.3_0+universal/sleuthkit/main.log no revela nada particularmente útil para mí:
version:1
:debug:main Executing org.macports.main (sleuthkit)
:debug:deactivate deactivate phase started at Tue Jan 31 19:18:24 EST 2012
:debug:deactivate Executing org.macports.deactivate (sleuthkit)
:msg:deactivate ---> Deactivating sleuthkit @3.2.3_0+universal
:error:deactivate Target org.macports.deactivate returned: this entry does not own the given file
:debug:deactivate Backtrace: this entry does not own the given file
while executing
"$port deactivate $imagefiles"
invoked from within
"registry::write {
$port deactivate $imagefiles
foreach file $files {
_deactivate_file $file
}
..."
(procedure "_deactivate_contents" line 37)
invoked from within
"_deactivate_contents $requested [$requested files] $force"
(procedure "portimage::deactivate" line 54)
invoked from within
"registry_deactivate $subport $version $revision $portvariants [array get user_options]"
(procedure "portdeactivate::deactivate_main" line 3)
invoked from within
"$procedure $targetname"
:info:deactivate Warning: the following items did not execute (for sleuthkit): org.macports.deactivate
:notice:deactivate Log for sleuthkit is at: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_sleuthkit_3.2.3_0+univ\
ersal/sleuthkit/main.log
¿Alguien sabe qué hay detrás de estos errores? Más importante aún, ¿cómo puedo arreglar mi instalación para que esto ya no ocurra?