歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

解決yum錯誤Error: requested datatype primary not available

服務器信息:
[www.linuxidc.com@linuxidc ~]$ cat /proc/version
Linux version 2.6.18-194.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Mon Mar 29 22:10:29 EDT 2010

出錯信息:
[www.linuxidc.com@linuxidc ~]$ sudo yum install gettext-devel httpd-devel openssl-devel zlib-devel gcc gcc-c++ curl-devel expat-devel gettext-devel mysql-server mysql-devel libevent-devel mysql-devel mysql pcre pcre-devel libxml2-devel sqlite-devel ruby-devel -y
Loaded plugins: security
Error: requested datatype primary not available
[www.linuxidc.com@linuxidc ~]$ sudo yum upgrade
Loaded plugins: security
Error: requested datatype primary not available

解決方案:
[www.linuxidc.com@linuxidc ~]$ sudo yum clean all
Loaded plugins: security
Cleaning up Everything
[www.linuxidc.com@linuxidc ~]$ sudo rpm --rebuilddb

Copyright © Linux教程網 All Rights Reserved