Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
George_Liu
Contributor

Force install Jumbo

(省時間的客官請看 Workaround)

前情提要:

  1. 初始建置:R77.20 ,上過一些 hotfix
  2. 就地升級 R77.30 失敗,Fresh install R77.30 後 upgrade_import 重建環境
  3. 歷經幾次因為 Smart Center Crash, resotre 種種問題。

需求:Install Jumbo 302

處理經過:

1. CPUSE 安裝時,發現要 uninstall Take 216,卻失敗

2. 檢查 installed_jumbo_take 顯示裝的卻是 take_184

3. fw ver -k 顯示 Build 503,這是未安裝 Jumbo 的 build number

4. cpstat mg 查出來的 Build number 居然對不上任何版本 sk114513

5. 走頭無路時參考了 sk101975,敲醒我的重點摘錄如下:

Or manually remove references to Jumbo Hotfix Accumulator RPM packages for Gaia OS:

There are two ways to remove references - either using an uninstall shell script (recommended), or by manually editing the relevant files.

  • Way 1: Remove references to RPM packages using an uninstall shell script (recommended😞

    1. Backup the current files:
      [Expert@HostName:0]# cp $CPDIR/registry/HKLM_registry.data $CPDIR/registry/HKLM_registry.data_BKP
      [Expert@HostName:0]# cp /opt/SecurePlatform/conf/crs.xml /opt/SecurePlatform/conf/crs.xml_BKP

※ 以下有練過,再來做,沒練過,找 Support 做,千萬記得 backup, backup, 再 backup。

Mindset

  1. 想辦法讓系統認為沒裝過 Hotfix
  2. 萬一出問題要能恢復原狀。(再一次,backup, backup, backup)

Workaround: (以下摘要說明,因為過程有點煩)

  1. cpstop; backup
  2. /dev/null > /opt/SecurePlatform/crs.xml
  3. vi $CPDIR/registry/HKLM_registry.data
  4. 以 : ( ) 為單位,刪除整組以下開頭的資訊
    • HotFix
    • HOTFIX
    • BUNDLE_R77_
  5. cpstart
  6. exit expert mode
  7. installer install Take302
  8. 收工

後續待研究:

  1. 目前沒找到如果 CPUSE clean rebuild 的方法。(like freebsd porttree update)
2 Replies
Danny_Yang
Ambassador
Ambassador

謝謝George血淚的經驗分享!

0 Kudos
Jarvis_Lin
Collaborator

剛要上R80.10 JHF189...發生類似問題

點擊安裝JHF 189後, CPUSE 會 Uninstall 當前的JHF169...

但移除失敗, 錯誤訊息如下...

Uninstall the hotfix(es) HOTFIX_R80_10_New_Image and try again.

參考 George Liu 作法, 具體如下...

  1. cpstop
  2. vi $CPDIR/registry/HKLM_registry.data
  3. 標記 # 號如下圖: (這段在檔案最下面)
  4. cpstart
  5. install JHF 189
  6. 收工

後續:

移除JHF189然後再安裝JHF169...再安裝JHF189...沒啥狀況...更新成功...

Upcoming Events

    CheckMates Events