For a fresh install of FreeBSD 9.1 (since July 2013 and probably earlier), do NOT invoke the [FILE]pkg[/FILE] command. Do the fresh install like this:
Fresh install per usual, login/password, do minor housekeeping, then in this order:
- Code: Select all
- [CMD]portsnap fetch extract[/CMD]
- [CMD]cd /usr/ports/ports-mgmt/pkg[/CMD] ([CMD]make install clean[/CMD])
- [CMD]cd /usr/ports/ports-mgmt/portmaster[/CMD] ([CMD]make install clean[/CMD])
then use [CMD]pkg version[/CMD] to show installed ports and [CMD]portmaster -L[/CMD] to confirm the same thing.
If you simply type [CMD]pkg[/CMD] instead of installing [FILE]pkg[/FILE] from the ports collection as described above, it will install an earlier version of [FILE]pkg[/FILE] which doesn't play nice with [FILE]portmaster[/FILE]. On a fresh install you do NOT need to run [FILE]pkg2ng[/FILE], since there is no database to convert at that point.
I confirmed this behavior on a Virtualbox install a few minutes ago (using x32 architecture, but it is certainly also true for the x64 platform.)
PS - this may be needed for the upcoming 9.2 release as well, so do the ports collection install and avoid a headache.