Linux中安装包文件时,提示There is no installed groups file

时间:2024-03-19 19:16:56

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。

Linux中安装包文件时,提示There is no installed groups file