How to really uninstall a failed port?

Thomas trg818 at gmail.com
Sun Apr 22 09:46:18 PDT 2012


Thanks for your suggestions.
On Sun, Apr 22, 2012 at 6:07 PM, Bradley Giesbrecht <pixilla at macports.org>wrote:

> Port archives the package files and then installs from this archive, and
> unfortunately it looks like the archive is corrupt.
>
Possible.

> I think this command will show you where this archive is located.
> $ port location qt4-mac
>
> /opt/local/var/macports/software/qt4-mac/qt4-mac-4.7.4_1+quartz.darwin_10.x86_64.tbz2
>
No, probably because the installation didn't complete:
port location qt4-macError: port location failed: Registry error: qt4-mac
not registered as installed.
There is an archive file there, however, and it is in the location you
suggested:
ls -l /opt/local/var/macports/software/qt4-mac/total 159384
-rw-r--r--  1 macports  admin  81604608 Apr 22 06:26
qt4-mac-4.7.4_1+quartz.darwin_9.i386.tgz
I just checked the md5sum, and it seems indeed that it is indeed corrupted.

> If you want to remove the file this command should do it:
> $ sudo port uninstall qt4-mac
>
No, it doesn't. When I execute this command, nothing seems to happen, and I
get no errors, but the archive remains where it is, and when I try to
reinstall, I get this:
sudo port install qt4-mac at 4.7.4_1+quartz
--->  Computing dependencies for qt4-mac
--->  Installing qt4-mac @4.7.4_1+quartz
Error: Target org.macports.install returned:
gzip: stdin: unexpected end of file
/usr/bin/tar: Unexpected EOF in archive
/usr/bin/tar: Error is not recoverable: exiting now
Error: Failed to install qt4-mac
Log for qt4-mac is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/qt4-mac/main.log
Error: The following dependencies were not installed: qt4-mac
Error: Status 1 encountered during processing.

When I remove the broken tarfile by hand (i.e. mv it to a complete
different place), I have:
sudo port install qt4-mac at 4.7.4_1+quartz
--->  Computing dependencies for qt4-mac
--->  Installing qt4-mac @4.7.4_1+quartz
Error: Target org.macports.install returned: no destroot found at:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/qt4-mac/work/destroot

I suspect there is some information in the database that got screwed up,
but how can I fix that? Somehow I must get rid of this tarfile and fetch it
again, but how?
Regards,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120422/e41a831c/attachment.html>


More information about the macports-users mailing list