# smpatch update システムに必要なパッチを評価しています... Failure: Cannot connect to retrieve Database/current.zip: This system is current ly unregistered and is unable to retrieve patches from the Sun Update Connection . Please register your system using the Update Manager.意訳:えーかげん Update Manager 使って Update Connection に登録しなよおまいさん。
# unzip updateConnection-sparc.zip # cd updateConnection # ./installUpdateConnection
# cp /usr/lib/breg/data/RegistrationProfile.properties /tmp # vim /tmp/RegistrationProfile.properties ---- userName=<Sun Online Account に登録済のユーザー名> password=<そのパスワード> ----ファイル名はなんでもよいと思うです。
# /usr/sbin/sconadm register -a -r /tmp/RegistrationProfile.properties Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/cns/basicreg/ BasicRegCLIあみゃあぁぁっ! なんにゃあ! これなんにゃのにゃあ!
# file /usr/sbin/sconadm /usr/sbin/sconadm: 実行可能 シェル スクリプトsconadm 自体はただの sh スクリプトで、その最後に
exec java -classpath ${MAIN_JAR} com.sun.cns.basicreg.BasicRegCLI $SUBCOMMAND ${
ARGUMENTS}
な感じで java を起動しているです。# cd /tmp # cp /usr/lib/breg/basicreg.jar . # unzip basicreg.jar # cd basicreg/com/sun/cns/basicreg # pwd /tmp/basicreg/com/sun/cns/basicreg # ls BasicReg$1.class TestFrame$4.class BasicReg$LoadTask.class TestFrame$5.class BasicReg.class TestFrame$6.class BasicRegFrame$1.class TestFrame$LanguageListener.class BasicRegFrame.class TestFrame.class Collector.class adapter/ TestFrame$1.class advertisement/ TestFrame$2.class qa/ TestFrame$3.class util/... えーっと ...
# setenv DISPLAY <奴のホスト名か IP アドレス>:0 # updatemanager Xlib: connection to "奴:0.0" refused by server Xlib: No protocol specified Can't connect to X11 window server using '奴:0' as the value of the DISPLAY vari able.うわ、やっべ、穴あけわすれてた。
ipfw add pass tcp from <X Client の IP アドレス> any to <X Server(自分)の IP アドレス> 6000 setup次に X Server のアクセス制御設定を追加するですよ。
> startx -listen_tcp ... X が起動したら何らかの Terminal を起動して、 > xhost + <X Client のホスト名か IP アドレス> <指定した X Client> being added to access control list
# setenv DISPLAY <X Server のホスト名か IP アドレス>:0 # updatemanagerすると...
# smpatch update実行ですよ。
システムに必要なパッチを評価しています...
取得されたパッチリスト...
パッチをダウンロード中 /var/sadm/spool...
com.sun.patchpro.util.Percentage@1954f89
121308-01 has been validated.
com.sun.patchpro.util.Percentage@1d5b89c
119254-10 has been validated.
... 途中省略 ...
NOTICE: Patch 119689-06 cannot be installed until the next system shutdown.
NOTICE: Patch 119546-04 cannot be installed until the next system shutdown.
119117-09 適用されました。
121095-01 適用されました。
119115-13 適用されました。
119059-09 適用されました。
/var/sadm/spool/patchpro_dnld_2005.12.13@23:39:43:JST.txt 以下へ移動しました /va
r/sadm/spool/patchproSequester/patchpro_dnld_2005.12.13@23:39:43:JST.txt
インストールポリシーによって許可されていない
パッチの ID がファイルに書き込まれました
/var/sadm/spool/disallowed_patch_list
One or more updates that you installed requires a system shutdown to activate it
. To initiate the system shutdown, you must use one of the following commands:
o Power down the system - init 0 or shutdown -i 0
o Drop to the firmware prompt - init 5 or shutdown -i 5
o Restart the system - init 6 or shutdown -i 6
無事、アップデートできたです。# shutdown -g0 -y -i6shutdown 実行直後に以下のメッセージが出力されるですよ。
Installing update 118822-23 Succeeded Installing update 119689-06 Succeeded Installing update 119546-04 Succeededインストールできなかったアップデートがインストールされているのですよ。
# smpatch analyzeして、必要なアップデートが出力されなければ万々歳、なのですよ。
同じ症状ではまりました。(BasicRegCLI がなひ)
私の場合は
# smpatch remove -i 119108-06
して、もう一回
# smpatch update
したら、BasicRegCLI が現れやがります。
どうして一発目に当てたときにできなかったのか、までは追いかけてません。。
そのあとは sconadm で CLI でけますた。
ご参考までに。
情報ありがとうございます!
119108 ってことは x86 をお使いですね。 sparc 版は 119107 のようです。
一度 patch の remove が必要でしたか...
もしかして 11910[78]-06 ってひっそりと更新されてたとか?
時間があったら qemu で動かして試してみようかな... 絶対忘れるだろうな(笑
しっかし、 Solaris の壁は高いですなぁ...
ですね。でも、sparcでも検証済みです。
x86 でテストして、sparc で同じようにやりました。
(マシンが SunFire240のため GUI はNGで、がんばらざるを得なかったというオチです)
これからの情報更新も楽しみにしております(笑)
Posted by: 通りすがり at 2005年12月20日 10:16