Portsnap – Corrupt Snapshot

I ran into a problem with portsnap on my FreeBSD box and just figured out how to fix it. There was little information on the problem online so I will share it in case anyone else encounters this problem:

/usr/ports/files/<hash>.gz not found — snapshot corrupt.

To fix it I did this as root:

rm -rf /var/db/portsnap/*
portsnap fetch
portsnap extract update

This removes the corrupt snapshot database and forces it to fetch an entirely new one, then continue the update as usual.

This entry was posted in FreeBSD. Bookmark the permalink.

6 Responses to Portsnap – Corrupt Snapshot

  1. Sebastian says:

    thx!

  2. Squash says:

    Thank you

  3. Erik says:

    Thnx! This fixed my problem.
    :-)

  4. foo444foo@mailinator.com says:

    thnks too

  5. foobar says:

    I don’t think you need the update at the end
    of the steps — since you just did a fetch,
    portsnap extract should does it all, the
    ‘portsnap extract’ is implicitly also doing
    an ‘update’

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>