1. 程式人生 > >Linux中安裝包檔案時,提示There is no installed groups file

Linux中安裝包檔案時,提示There is no installed groups file

yum groupinstall "fonts"  安裝

Loaded plugins: langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Warning: Group fonts 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

而用yum group list又能檢視到該包

Loaded plugins: langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Available environment groups:
   MATE Desktop
Available Groups:
   Additional Development
   Backup Client
   Backup Server
   Base
   CIFS file server
   Compatibility libraries
   Console internet tools
   Debugging Tools
   Desktop
   Desktop Debugging and Performance Tools
   Desktop Platform
   Desktop Platform Development
   Development tools
   Dial-up Networking Support
   Directory Client
   Directory Server
   E-mail server
   Eclipse
   Educational Software
   Electronic Lab
   Emacs
   FCoE Storage Client
   FTP server
   Fedora Packager
   Fonts
   General Purpose Desktop
   Graphical Administration Tools
   Graphics Creation Tools
   Hardware monitoring utilities
   Haskell
   Infiniband Support
   Input Methods
   Internet Applications
   Internet Browser
   Java Platform
   KDE Desktop
   Large Systems Performance
   Legacy UNIX compatibility
   Legacy X Window System compatibility
   Mainframe Access
   Messaging Client Support
   Messaging Server Support
   Milkymist
   MySQL Database client
   MySQL Database server
   NFS file server
   Network Infrastructure Server
   Network Storage Server
   Network file system client
   Networking Tools
   Office Suite and Productivity
   PHP Support
   Performance Tools
   Perl Support
   PostgreSQL Database client
   PostgreSQL Database server
   Print Server
   Printing client
   Remote Desktop Clients
   SNMP Support
   Scientific support
   Security Tools
   Server Platform
   Server Platform Development
   Smart card support
   Storage Availability Tools
   System Management
   System administration tools
   TeX support
   Technical Writing
   TurboGears application framework
   Virtualization
   Virtualization Client
   Virtualization Platform
   Virtualization Tools
   Web Server
   Web Servlet Engine
   Web-Based Enterprise Management
   X Window System
   Xfce
   iSCSI Storage Client
Done

可以嘗試方法一:yum clean all  清除快取;再yum makecache  建立快取,重新執行yum groupinstall "fonts"  安裝

但對於CentOS/RHEL 7.X,因The yum has changedin Red Hat Enterprise Linux 7. The package group "**" has only theoptional packages which by default doesn't get installed. So we will need topass the option to install the optional packages too!

使用命令yum --setopt=group_package_types=mandatory,default,optionalgroupinstall "fonts"進行安裝即可

若是用Xshell遠端的Linux,且顯示的仍是亂碼,則需要開啟選單(檔案)--屬性,設定遠端連線為UTF-8。