pkgを1.2から1.3.xに上げたら以下のようなメッセージが出てupgradeができない。
1 2 3 4 5 6 7 8 |
$ sudo pkg upgrade Updating repository catalogue FreeBSD repository is up-to-date All repositories are up-to-date pkg: Repo FreeBSD needs schema upgrade from 2006 to 2010 but it is opened readonly pkg: need to re-create repo FreeBSD to upgrade schema version Checking for upgrades: 100% Checking integrity... done (0 conflicting) |
need to re-create repo とか言いつつ、どうすればいいのか書いてないし。
調べたところ、pkg update -fすればいいとのこと。
1 2 3 4 5 6 7 8 9 10 |
$ sudo pkg update -f Updating repository catalogue Fetching meta.txz: 100% of 944 B Fetching digests.txz: 100% of 1 MB Fetching packagesite.txz: 100% of 5 MB Adding new entries: 100% Incremental update completed, 23313 packages processed: 0 packages updated, 0 removed and 23313 added. |
incremental update completedとのこと。
この状態でpkg upgradeすると、確かに動いた。
表示も少し親切になっていますな。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
$ sudo pkg upgrade Updating repository catalogue FreeBSD repository is up-to-date All repositories are up-to-date Checking for upgrades: 100% The following 41 packages will be affected (of 0 checked): New packages to be INSTALLED: libevent2: 2.0.21_2 i386-wine-devel: 1.7.23,1 p5-Mozilla-CA: 20130114 Installed packages to be UPGRADED: xproto: 7.0.25 -> 7.0.26 Installed packages to be REINSTALLED: tevent-0.9.21 (options changed) The process will require 209 MB more space 78 MB to be downloaded Proceed with this action [y/N]: y Fetching xproto-7.0.26.txz: 100% of 60 KB Fetching vim-lite-7.4.389.txz: 100% of 5 MB (略) |
しかもconflictsを検知してくれるみたい。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
Checking integrity... done (1 conflicting) Checking integrity... done (0 conflicting) Conflicts with the existing packages have been found. One more solver iteration is needed to resolve them. The following 42 packages will be affected (of 0 checked): Installed packages to be REMOVED: libevent-1.4.14b_3 New packages to be INSTALLED: p5-Mozilla-CA: 20130114 libevent2: 2.0.21_2 i386-wine-devel: 1.7.23,1 Installed packages to be UPGRADED: xproto: 7.0.25 -> 7.0.26 Installed packages to be REINSTALLED: libxcb-1.10_2 (options changed) Proceed with this action [y/N]: y [1/42] Upgrading python27 from 2.7.6_4 to 2.7.8_2: 100% [2/42] Upgrading pcre from 8.34_1 to 8.34_2: 100% |
以上。