FreeBSD 8.2をインストールしてみた

さっそくです.
一度目は,失敗しました.

# freebsd-update -r 8.2-RELEASE upgrade
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 8.1-RELEASE from update2.FreeBSD.org...
done.
Fetching metadata index... done.
Fetching 2 metadata patches.. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc
src/games src/gnu src/include src/krb5 src/lib src/libexec src/release
src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin
src/usbin world/base world/dict world/doc world/info world/manpages
world/proflibs

The following components of FreeBSD do not seem to be installed:
world/catpages world/games

Does this look reasonable (y/n)? y

Fetching metadata signature for 8.2-RELEASE from update2.FreeBSD.org...
done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 8.1-RELEASE for merging... done.
Preparing to download files... done.
Fetching 31700
patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190....200....210....220....230....240....250....260....270....280....290....300....310....320....330....340....350....360....370....380....390....400....410....420....430....440....450....460....470....480
(snip)
10810....10820....10830....10840....10850....10860....10870....10880....10890....10900....10910....10920...
done.
Applying patches...
Fetching 19604 files... failed.

どうもports/packageのデータベースが壊れていたようです.
truetypeフォントが2バージョン登録されているというようなメッセージが出たので,

# pkgdb -F
--->  Checking the package registry database
Duplicated origin: x11-fonts/xorg-fonts-truetype -
xorg-fonts-truetype-7.4 xorg-fonts-truetype-7.5
Unregister any of them? [no]

調べてみると,実際に2バージョン登録されていて,portsツリーには新しい方が入っている模様.

> pkg_info|grep xorg-fonts-truetype
xorg-fonts-truetype-7.4 X.Org TrueType fonts
xorg-fonts-truetype-7.5 X.Org TrueType fonts
> grep -Hi version /usr/ports/x11-fonts/xorg-fonts-truetype*/Makefile
/usr/ports/x11-fonts/xorg-fonts-truetype/Makefile:PORTVERSION=  7.5

そこで,徹底的にpkgdb -Fで修復を...

  Unregister xorg-fonts-type1-7.4 keeping the installed files intact?
[no] yes
  -> xorg-fonts-type1-7.5 is kept.
  --> Saving the xorg-fonts-type1-7.4's +CONTENTS file as
/var/db/pkg/xorg-fonts-type1-7.5/+CONTENTS.xorg-fonts-type1-7.4
  --> Unregistering xorg-fonts-type1-7.4
  --> Done.
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 749 packages
found (-1 +0) (...) done]

Stale dependency: afterstep-2.2.9 -> xorg-fonts-truetype-7.4
(x11-fonts/xorg-fonts-truetype):
Fixed. (-> xorg-fonts-truetype-7.5)
Stale dependency: at-spi-1.32.0 -> xorg-fonts-truetype-7.4
(x11-fonts/xorg-fonts-truetype):
Fixed. (-> xorg-fonts-truetype-7.5)
(以下略)

改めて修復コマンドを打つと,

# pkgdb -F
--->  Checking the package registry database

Ok.
あらたてまして...

# freebsd-update -r 8.2-RELEASE upgrade
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 8.1-RELEASE from update2.FreeBSD.org...
failed.
Fetching metadata signature for 8.1-RELEASE from update4.FreeBSD.org...
done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc
src/games src/gnu src/include src/krb5 src/lib src/libexec src/release
src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin
src/usbin world/base world/dict world/doc world/info world/manpages
world/proflibs

The following components of FreeBSD do not seem to be installed:
world/catpages world/games

Does this look reasonable (y/n)? y

Fetching metadata signature for 8.2-RELEASE from update4.FreeBSD.org...
done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 8.1-RELEASE for merging... done.
Preparing to download files... done.
Fetching 18830
patches.....10....20....30....40....50....60....70....80....90.
(snip)
18810....18820....18830 done.
Applying patches... done.
Fetching 780 files... done.
Attempting to automatically merge changes in files... done.

The following changes, which occurred between FreeBSD 8.1-RELEASE and
FreeBSD 8.2-RELEASE have been merged into /etc/group:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: src/etc/group,v 1.35.10.1.4.1 2010/06/14 02:09:06 kensmith
Exp $
+# $FreeBSD: src/etc/group,v 1.35.10.1.6.1 2010/12/21 17:09:25 kensmith
Exp $
 #
 wheel:*:0:root
 daemon:*:1:
 kmem:*:2:
 sys:*:3:
Does this look reasonable (y/n)? y

The following changes, which occurred between FreeBSD 8.1-RELEASE and
FreeBSD 8.2-RELEASE have been merged into /etc/hosts:
--- current version
+++ new version
@@ -1,6 +1,6 @@
-# $FreeBSD: src/etc/hosts,v 1.16.34.1.4.1 2010/06/14 02:09:06 kensmith
Exp $
+# $FreeBSD: src/etc/hosts,v 1.16.34.1.6.1 2010/12/21 17:09:25 kensmith
Exp $
 #
 # Host Database
 #
 # This file should contain the addresses and aliases for local hosts that
 # share this file.  Replace 'my.domain' below with the domainname of your
Does this look reasonable (y/n)? y
(以下,基本的にコメント行の違いしか出なかったので略)

そしてインストールすると再起動をうながされるので再起動すると,

# freebsd-update install
Installing updates...
Kernel updates have been installed.  Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.
(ここでrebootして...)
FreeBSD www.sofken.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46
UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

終了.