从 Solaris 10 升级到 Solaris 10 11/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 |
解决方法:执行以下步骤:
成为超级用户。
列出系统中所安装的 SUNWbreg 和 SUNWbrg 本地化软件包。
# 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。
卸载在步骤 2 中出现的软件包。
# pkgrm `cat /tmp/list.breg /tmp/list.brg` |
卸载 SUNWbrg、SUNWdc 和 SUNWbreg 软件包。
# pkgrm SUNWbrg SUNWdc SUNWbreg |
从分发介质(如 CD 或 DVD)复制 SUNWbrg 软件包和所需的本地化软件包。
/tmp/list.brg 文件中列出了所需的本地化软件包。
# cd distribution-media # cd Solaris_10/Product # cp -rp SUNWbrg `cat /tmp/list.brg` /tmp |
安装 SUNWbrg 和本地化软件包。
# pkgadd -d /tmp SUNWbrg |
如果 /tmp/list.brg 文件不是空的,请安装本地化软件包。
# pkgadd -d /tmp `cat /tmp/list.brg` |