problems with my macport

Rainer Müller raimue at macports.org
Mon Jul 26 18:26:51 PDT 2010


On 2010-07-26 19:01 , Zhu Sha Zang wrote:
> I'm trying to upgrade macport, first with
> 
> port -v selfupgrade (succesfull)
> 
> But, when i tried to upgrade with:
> 
> port upgrade outdated receive this error:
> 
> mac:/Users/rodolfo root# port upgrade outdated
> Error: /opt/local/bin/port: port installed failed: bzip2:
> /opt/local/var/macports/receipts/readline/6.0.000_2+darwin/receipt.bz2
> is not a bzip2 file.

Whatever happened here, this receipt is corrupted leaving your registry
in an inconsistent state. This could for example have happened if you
ran out of disk space during activation.

Fixing the registry by hand needs to be done with caution. Here are some
step which should get you going again:

# Manually mark readline as not installed
sudo rm -rf /opt/local/var/macports/receipts/readline/6.0.000_2+darwin
sudo rm -rf /opt/local/var/macports/software/readline/6.0.000_2+darwin
# Install readline again
sudo port install readline       # this will fail due to existing files
sudo port -f activate readline   # force overwriting existing files

HTH,
Rainer


More information about the macports-users mailing list