yum安装Development Tools报错问题
[root@superdesktop ~]# yum groupinstall "Development Tools" Loaded plugins: fastestmirror, langpacks There is no installed groups file. Maybe run: yum groups mark convert (see man yum) Determining fastest mirrors ^[[A^[[A * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00 epel | 5.3 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 (1/7): base/7/x86_64/group_gz | 166 kB 00:00 (2/7): epel/x86_64/updateinfo | 994 kB 00:01 (3/7): extras/7/x86_64/primary_db | 205 kB 00:01 (4/7): epel/x86_64/group_gz | 88 kB 00:05 (5/7): epel/x86_64/primary_db | 6.8 MB 00:17 (6/7): base/7/x86_64/primary_db | 6.0 MB 00:19 (7/7): updates/7/x86_64/primary_db | 6.5 MB 00:19 Warning: Group development 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
遇到这个问题的时候,有两种解决方法!
方法1
使用清空命令 yum clean all 然后执行 yum groupinstall "Development Tools"
方法2
如果上述方法没有用,在执行如下命令
cd /etc/yum.repos.d sudo wget http://public-yum.oracle.com/public-yum-el5.repo cd /etc/pki/rpm-gpg/ sudo wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
执行完后,在安装
yum groupinstall "Development Tools"
衣带渐宽终不悔,为伊消得人憔悴!