yum安装Development Tools报错问题

yum安装Development Tools报错问题

我们通过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"

以上方法,亲测有用,希望给大家带来帮助!

上一篇:android 01


下一篇:myBatis源码学习之SqlSessionFactoryBuilder