由於曝出漏洞(CVE-2017-3248)需要將weblogic補丁更新至B25A,但是出現報錯。如下:
Conflict(s) detected - resolve conflict condition and execute patch installation again Conflict condition details follow: Patch B25A is mutually exclusive and cannot coexist with patch(es): UIAL
看意思是B25A與之前安裝的UIAL補丁相沖突,那么先卸載UIAL再安裝B25A即可;其他補丁同樣沖突一樣先卸載舊補丁再裝新補丁即可(bsu.sh參數可通過./bsu.sh -help查看):
./bsu.sh -remove -verbose -patchlist=UIAL -prod_dir=/weblogic/wlserver_10.3/ ./bsu.sh -install -verbose -patch_download_dir=/weblogic/utils/bsu/cache_dir/ -patchlist=B25A -prod_dir=/weblogic/wlserver_10.3/
如果與多個補丁沖突,雖然參數叫-patchlist但是並不建議一次寫多個補丁進行卸載;一是因為一起卸載並不比分開卸載省時間,二是因為這多個補丁間往往有先后依賴關系如果檢測有先后關系則bsu只會提醒你得先卸載哪個補丁后徑直退出這樣只會讓你白白浪費漫長的沖突檢測時間。如下就是說得先卸載ZLNA這個補丁才能卸載其他補丁(不要以為你把ZLNA寫前面他就會自動先卸載ZLNA):
[weblogic@ls bsu]$ ./bsu.sh -remove -verbose -patchlist=ZLNA,EJUW -prod_dir=/weblogic/bea/wlserver_10.3/ Checking for conflicts...................... Conflict(s) detected - resolve conflict condition and execute patch removal again Conflict condition details follow: The selected patch cannot be removed until the following patch(es) are removed first: ZLNA