centos7 的“No packages”问题 

Kanonpy
  Kanonpy 发布于 2018/06/29 16:51
 
字数 234
 
阅读 353
 
收藏  0
   

centos7 下的“No packages in any requested group available to install or update”问题

今天用yum 安装x-windows,报如下错误:

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 

不能安装,说无效,命令没错,去官网查找原因,在官网看到Why yum groupinstall "package group name" is failing on RHEL 7 with error "There is no installed groups file" ? 正好描述了这个问题。

原来在7之后,默认选项并没有被安装导致的,需要自己添加默认项,解决方案:yum groupinstall "Office Suite and Productivity" --setopt=group_package_types=mandatory,default,optional

在后面加上--setopt=group_package_types=mandatory,default,optional 即可:

sudo  yum groupinstall "X Window System"  --setopt=group_package_types=mandatory,default,optional

 

转载于:https://www.cnblogs.com/lijp91/p/10243235.html

GitHub 加速计划 / li / linux-dash
10
1
下载
A beautiful web dashboard for Linux
最近提交(Master分支:8 个月前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐