portupgrade broken

Chris Whitehouse cwhiteh at onetel.com
Thu Sep 17 18:30:36 UTC 2009

Jerry wrote:
> On Wed, 16 Sep 2009 11:18:39 +0200
> "DA Forsyth" <d.forsyth at ru.ac.za> wrote:
> [snip]
>> I saw someone ask about this in Google Groups on the 14th but he has 
>> not got an answer yet, so I am not the only one.
>> How do I fix this?
> You could try the following;
> 1) Update your ports tree.

including updating INDEX-7 or is that taken as read?

#make fetchindex
if done at the same time as updating the ports tree
#make index
any other time but it takes a long time


> 2) Remove: /var/db/pkg/pkgdb.db
> 3) Run: /usr/local/sbin/pkgdb -Ffuv
> 4: Run: /usr/local/sbin/portsdb -fUu
> 4) Run: /usr/sbin/pkg_version -vIL=
> Now run portupgrade as you normally do and see what transpires.
> If that still fails, install /usr/ports/ports-mgmt/portmanager
> Then run it as thus: portmanager -u -l -y -p
> I have had great success in getting updates completed successfully with
> portmanager when portupgrade and portmaster both crapped out. I would
> suggest that you consider deleting the contents of
> the /usr/ports/distfiles prior to running any of the above port utility
> programs.

More information about the freebsd-questions mailing list