Centos7 yum groupinstall 報錯的解決辦法

Centos7 yum groupinstall  

 

Error There is no installed groups file

解決辦法 

  • centos7
  • yum

問題

  • yum groupinstall "Office Suite and Productivity" is failing on Red Hat Enterprise Linux 7 with error There is no installed groups file
  • yum groupinstall "Office Suite and Productivity
    Loaded plugins: langpacks, product-id, subscription-manager
    There is no installed groups file.
    Maybe run: yum groups mark convert (see man yum)
    Warning: Group office-suite does not have any packages to install.
    Maybe run: yum groups mark install (see man yum)
    No packages in any requested group available to install or update

解決方法,在命令後面加一個參數 --setopt=group_package_types=mandatory,default,optional

yum groupinstall "Office Suite and Productivity" --setopt=group_package_types=mandatory,default,optional

原因
在Red Hat Enterprise Linux 7中,yum已發生變化。“Office套件和工具”軟件包組僅包含默認情況下未安裝的可選軟件包。所以我們需要傳遞選項來安裝可選包!其他 groupinstall 不成功的也是一個道理。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章