“No packages in any requested group available to install or update” in centos7
Using Yum to install X-Windows today, the following error was reported:
sudo yum groups install "X Window System"
Loading mirror speeds from cached hostfile
* base: mirrors.shu.edu.cn
* epel: mirror.dmmlabs.jp
* extras: mirrors.cn99.com
* updates: mirrors.cn99.com
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update
It can’t be installed. It’s invalid. The command is correct. Go to the official website to find out the reason. You can see why Yum groupinstall “package group name” is failing on RHEL 7 with error “there is no installed groups file” on the official website, which exactly describes this problem.
It turns out that after 7, the default options are not installed, so you need to add the default items yourself. The solution is: Yum groupinstall "office suite and productivity" -- setopt = group_ package_ types=mandatory,default,optional
Add — setopt = group after_ package_ Types = mandatory, default, optional
sudo yum groupinstall "X Window System" --setopt=group_package_types=mandatory,default,optional
Similar Posts:
- How to Solve Yum Install Development Tools Error
- Linux: apt get install build essential and Yum groupinstall “development tools”
- [Solved] Cannot use lsof command “- bash: lsof: command not found” in centos6
- Yum Install Docker and Upgrade Yum Storage error: No packages marked for update
- -Two solutions to bash: WGet: command not found
- Install CentOS development tools
- Python upgrade resulted in an error using yum
- This system is not registered with an entitlement server. You can use subscription-manager to reg…
- [Solved] Could not resolve host: mirrorlist.centos.org Centos 7 Unkown error
- failure: repodata/filelists.sqlite.bz2 from teamviewer: [Errno 256] No more mirrors to try