Solaris 10 6/06 版本說明

從 Solaris 10 升級至 Solaris 10 6/06 重新開機時會發生 SMF 錯誤並包含可能會影響修補的 Solaris 套裝軟體問題 (6421275)

從 Solaris 10 升級至 Solaris 10 6/06 時,一旦重新開機,便會發生多重 SMF 與套裝軟體違規錯誤。螢幕上將顯示下列錯誤訊息:


oyster console login: May  3 15:05:47 svc.startd[7]: 
svc:/system/basicreg:default: Method "/usr/sbin/sconadm register -c -m autoreg" 
failed with exit status 1.
May  3 15:05:48 svc.startd[7]: svc:/system/basicreg:default: 
Method "/usr/sbin/sconadm register -c -m autoreg" failed with exit status 1.
May  3 15:05:48 svc.startd[7]: svc:/system/basicreg:default: 
Method "/usr/sbin/sconadm register -c -m autoreg" failed with exit status 1.
May  3 15:05:48 svc.startd[7]: system/basicreg:default failed


#scvs -xv
svc:/system/basicreg:default (?)
State: maintenance since Wed May 03 15:05:48 2006
Reason: Start method failed repeatedly, last exited with status 1.
  See: http://sun.com/msg/SMF-8000-KS
  See: /var/svc/log/system-basicreg:default.log
Impact: This service is not running.
#
# cat  /var/svc/log/system-basicreg:default.log
[ May  3 15:05:33 Enabled. ]
[ May  3 15:05:33 Rereading configuration. ]
[ May  3 15:05:47 Executing start method 
("/usr/sbin/sconadm register -c -m autoreg") ]
You must accept terms of use (by passing in -a) in order to register.
The terms of use and binary code license agreement are located at:
Terms of Use : http://sun.com/applink/sunuc/tou1en
Binary Code License Agreement :
http://sun.com/applink/sunuc/bcl1en
[ May  3 15:05:48 Method "start" exited with status 1 ]
[ May  3 15:05:48 Executing start method 
("/usr/sbin/sconadm register -c -m autoreg") ]
You must accept terms of use (by passing in -a) in order to register.
The terms of use and binary code license agreement are located at:
Terms of Use : http://sun.com/applink/sunuc/tou1en

Binary Code License Agreement :
http://sun.com/applink/sunuc/bcl1en
[ May  3 15:05:48 Method "start" exited with status 1 ]
#
we also had multiple packages owning the same type "f" files 
after zones upgrade as follows:

/usr/lib/breg/basicreg.jar
/usr/lib/breg/br-common.jar
/usr/lib/breg/data/RegistrationProfile.properties
/usr/lib/breg/jdom.jar
/usr/lib/breg/resources/i18n/assetStrings_de.properties
/usr/lib/breg/resources/i18n/assetStrings_es.properties
/usr/lib/breg/resources/i18n/assetStrings_fr.properties
/usr/lib/breg/resources/i18n/assetStrings_it.properties
/usr/lib/breg/resources/i18n/assetStrings_ja.properties
/usr/lib/breg/resources/i18n/assetStrings_ko.properties
/usr/lib/breg/resources/i18n/assetStrings_sv.properties
/usr/lib/breg/resources/i18n/assetStrings_zh.properties
/usr/lib/breg/resources/i18n/assetStrings_zh_TW.properties
/usr/lib/breg/resources/i18n/countryStrings_de.properties
/usr/lib/breg/resources/i18n/countryStrings_es.properties
/usr/lib/breg/resources/i18n/countryStrings_fr.properties
/usr/lib/breg/resources/i18n/countryStrings_it.properties
/usr/lib/breg/resources/i18n/countryStrings_ja.properties
/usr/lib/breg/resources/i18n/countryStrings_ko.properties
/usr/lib/breg/resources/i18n/countryStrings_sv.properties
/usr/lib/breg/resources/i18n/countryStrings_zh.properties
/usr/lib/breg/resources/i18n/countryStrings_zh_TW.properties
/usr/lib/breg/resources/i18n/languageStrings_de.properties
/usr/lib/breg/resources/i18n/languageStrings_es.properties
/usr/lib/breg/resources/i18n/languageStrings_fr.properties
/usr/lib/breg/resources/i18n/languageStrings_it.properties
/usr/lib/breg/resources/i18n/languageStrings_ja.properties
/usr/lib/breg/resources/i18n/languageStrings_ko.properties
/usr/lib/breg/resources/i18n/languageStrings_sv.properties
/usr/lib/breg/resources/i18n/languageStrings_zh.properties
/usr/lib/breg/resources/i18n/languageStrings_zh_TW.properties
/usr/lib/breg/resources/i18n/wizardStrings_de.properties
/usr/lib/breg/resources/i18n/wizardStrings_es.properties
/usr/lib/breg/resources/i18n/wizardStrings_fr.properties
/usr/lib/breg/resources/i18n/wizardStrings_it.properties
/usr/lib/breg/resources/i18n/wizardStrings_ja.properties
/usr/lib/breg/resources/i18n/wizardStrings_ko.properties
/usr/lib/breg/resources/i18n/wizardStrings_sv.properties
/usr/lib/breg/resources/i18n/wizardStrings_zh.properties
/usr/lib/breg/resources/i18n/wizardStrings_zh_TW.properties
/usr/lib/breg/resources/i18n/xmlValueStrings_de.properties
/usr/lib/breg/resources/i18n/xmlValueStrings_es.properties
/usr/lib/breg/resources/i18n/xmlValueStrings_fr.properties
/usr/lib/breg/resources/i18n/xmlValueStrings_it.properties
/usr/lib/breg/resources/i18n/xmlValueStrings_ja.properties
/usr/lib/breg/resources/i18n/xmlValueStrings_ko.properties
/usr/lib/breg/resources/i18n/xmlValueStrings_sv.properties
/usr/lib/breg/resources/i18n/xmlValueStrings_zh.properties
/usr/lib/breg/resources/i18n/xmlValueStrings_zh_TW.properties
/usr/lib/breg/wizard.jar
/usr/sbin/sconadm
/usr/sbin/smpatch

    解決方法:請執行以下步驟︰

  1. 成為超級使用者。

  2. 列出安裝於系統上之 SUNWbregSUNWbrg 本土化套裝軟體。


    # pkginfo | awk '{print $2}' | grep 'SUNW.breg' > /tmp/list.breg
           # cat /tmp/list.breg
           SUNWcbreg
           SUNWdbreg
           SUNWebreg
           SUNWfbreg
           SUNWhbreg
           SUNWibreg
           SUNWjbreg
           SUNWkbreg
           SUNWsbreg
           # pkginfo | awk '{print $2}' | grep 'SUNW.brg' > /tmp/list.brg
           # cat /tmp/list.brg
           SUNWcbrg
           SUNWdbrg
           SUNWebrg
           SUNWfbrg
           SUNWhbrg
           SUNWibrg
           SUNWjbrg
           SUNWkbrg
           SUNWsbrg

    備註 –

    /tmp/list.breg 檔案與 /tmp/list.brg 檔案的內容可能會因安裝於系統上之本土化套裝軟體而不同,或者檔案可能是空的。如果 /tmp/list.brg 檔案包含套裝軟體,請儲存套裝軟體名稱清單,這樣您就會知道在步驟 5 需要複製哪些套裝軟體。如果檔案是空的,請跳至步驟 4。


  3. 解除安裝在步驟 2 找到的套裝軟體。


    # pkgrm `cat /tmp/list.breg /tmp/list.brg`
    
  4. 解除安裝 SUNWbrgSUNWdcSUNWbreg 套裝軟體。


    # pkgrm SUNWbrg SUNWdc SUNWbreg
    
  5. 複製您在發行媒體 (例如 CD 或 DVD) 中所需要的 SUNWbrg 套裝軟體及本土化套裝軟體。


    備註 –

    您需要的本土化套裝軟體列在 /tmp/list.brg 檔案中。



    # cd distribution-media
        # cd Solaris_10/Product
        # cp -rp SUNWbrg `cat /tmp/list.brg` /tmp
    
  6. 安裝 SUNWbrg 及本土化套裝軟體。


    # pkgadd -d /tmp SUNWbrg
    

    如果 /tmp/list.brg 檔案不是空的,請安裝本土化套裝軟體。


    # pkgadd -d /tmp `cat /tmp/list.brg`