Month: March 2008

  • Portupgrade pkgdb.db “unexpected file type or format” error

    # portupgrade -a
    [Updating the pkgdb <format:bdb_btree> in /var/db/pkg … /var/db/pkg/pkgdb.db: unexpected file type or format — Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg … [Updating the pkgdb <format:bdb_btree> in /var/db/pkg … /var/db/pkg/pkgdb.db: unexpected file type or format — Invalid argument; rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg … /var/db/pkg/pkgdb.db: unexpected file type or format — Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
    Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFOQ

    If this error happens to you, just do:

    rm /var/db/pkg/pkgdb.db

    And run portupgrade again, it will rebuild the database by itself.

  • Finally opened!

    This is it! My blog is finally opened, i really thought i’d never open one.. I will mostly post my personal experiences related to IT, so i will use it as a notebook to write some notes that i should remember and hopefully help other people with them. I often found many tutorials and interesting articles in personal blogs, so now i think it is time for me to help the community as well.

    Enjoy your stay.