今天执行yum clean all && yum makecache && yum update -y来更新下源和系统的时候出新下面的错误
[[email protected] /etc/yum.repos.d]# yum clean all Loaded plugins: security Cleaning repos: base epel extras updates Cleaning up Everything [[email protected] /etc/yum.repos.d]# yum makecache Loaded plugins: security base | 3.7 kB 00:00 base/group_gz | 216 kB 00:00 base/filelists_db | 6.1 MB 00:00 base/primary_db | 4.6 MB 00:00 base/other_db | 2.8 MB 00:00 epel | 4.4 kB 00:00 epel/filelists_db | 9.5 MB 00:03 epel/primary_db | 6.6 MB 00:00 epel/other_db | 4.0 MB 00:00 epel/updateinfo | 1.0 MB 00:00 extras | 3.4 kB 00:00 extras/filelists_db | 32 kB 00:00 extras/prestodelta | 605 B 00:00 extras/primary_db | 31 kB 00:00 extras/other_db | 37 kB 00:00 updates | 3.4 kB 00:00 updates/filelists_db | 2.6 MB 00:00 updates/prestodelta | 397 kB 00:00 updates/primary_db | 3.9 MB 00:00 updates/other_db | 38 MB 00:00 epel/pkgtags | 1.6 MB 00:00 Metadata Cache Created [[email protected] ~]# cat /etc/redhat-release CentOS release 6.5 (Final) [[email protected] ~]# yum update -y Loaded plugins: security Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package abrt.x86_64 0:2.0.8-21.el6.centos will be updated ---> Package abrt.x86_64 0:2.0.8-26.el6.centos will be an update ---> Package abrt-addon-ccpp.x86_64 0:2.0.8-21.el6.centos will be updated ---> Package abrt-addon-ccpp.x86_64 0:2.0.8-26.el6.centos will be an update ---> Package abrt-addon-kerneloops.x86_64 0:2.0.8-21.el6.centos will be updated ....................................N行省略 ---> Package yum.noarch 0:3.2.29-60.el6.centos will be an update ---> Package yum-plugin-security.noarch 0:1.1.30-17.el6_5 will be updated ---> Package yum-plugin-security.noarch 0:1.1.30-30.el6 will be an update ---> Package yum-utils.noarch 0:1.1.30-17.el6_5 will be updated ---> Package yum-utils.noarch 0:1.1.30-30.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: kernel x86_64 2.6.32-504.23.4.el6 updates 29 M Updating: abrt x86_64 2.0.8-26.el6.centos base 210 k abrt-addon-ccpp x86_64 2.0.8-26.el6.centos base 117 k abrt-addon-kerneloops x86_64 2.0.8-26.el6.centos base 68 k abrt-addon-python x86_64 2.0.8-26.el6.centos base 65 k .................................................N行省略 yum noarch 3.2.29-60.el6.centos base 1.0 M yum-plugin-security noarch 1.1.30-30.el6 base 41 k yum-utils noarch 1.1.30-30.el6 base 110 k Transaction Summary =================================================================================================================================== Install 1 Package(s) Upgrade 182 Package(s) Total size: 170 M Downloading Packages: Running rpm_check_debug ERROR with rpm_check_debug vs depsolve: yum-plugin-fastestmirror is needed by yum-3.2.29-60.el6.centos.noarch ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows: yum-3.2.29-43.el6.centos.noarch has missing requires of yum-plugin-fastestmirror Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2015-07-09-06-009_9hXv.yumtx
下面是解决方法
[[email protected] ~]# wget http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/yum-3.2.29-60.el6.centos.noarch.rpm [[email protected] ~]# wget http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm [[email protected] ~]# wget http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm [[email protected] ~]# wget http://mirrors.aliyun.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm [[email protected] ~]# rpm -qa | grep yum | xargs rpm -e --nodeps [[email protected] ~]# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm [[email protected] ~]# rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm [[email protected] ~]# rpm -ivh yum-3.2.29-60.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rp [[email protected] ~]# rpm -ivh yum-3.2.29-60.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm [[email protected] ~]# which yum /usr/bin/yum [[email protected] ~]# yum version Loaded plugins: fastestmirror Installed: 6/x86_64 639:db3fc95e7d8ea420376dbb5abb05bffdb91ccab9 Group-Installed: yum 15:227bdf1928a7fd9323a243946378053e9a6d8ff9 version [[email protected] ~]# yum --version 3.2.29 Installed: rpm-4.8.0-38.el6_6.x86_64 at 2015-07-09 04:21 Built : CentOS BuildSystem <http://bugs.centos.org> at 2014-12-09 18:24 Committed: Florian Festi <[email protected]> at 2014-11-13 Installed: yum-3.2.29-60.el6.centos.noarch at 2015-07-09 06:04 Built : CentOS BuildSystem <http://bugs.centos.org> at 2014-10-16 15:15 Committed: Johnny Hughes <[email protected]> at 2014-10-15 Installed: yum-plugin-fastestmirror-1.1.30-30.el6.noarch at 2015-07-09 06:04 Built : CentOS BuildSystem <http://bugs.centos.org> at 2014-10-15 07:16 Committed: Valentina Mukhamedzhanova <v[email protected]> at 2014-08-11 [[email protected] ~]#
您可以选择一种方式赞助本站
支付宝扫一扫赞助
微信钱包扫描赞助
赏