通过 yum update 将系统从CentOS 6.2 升级到 CentOS 6.6 及升级过程中的简单排错

本文说明

本文写于2014年的WP中,后WP停止维护,今天翻到此记录整理下,记录于此,方便日后查看.

话说那时候写博客真是认真啊~哈哈~

升级前的系统信息

[[email protected] ~]# uname -a
Linux thatsit 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]# uname -r
2.6.32-220.el6.x86_64
[[email protected] ~]# uname -m
x86_64
[[email protected] ~]# cat /etc/redhat-release
CentOS release 6.2 (Final)
[[email protected] ~]#

故障处理过程

直接运行 yum -y update报错:

提示#1, 有依赖关系存在问题,需要libqpidclient.so.5

提示#2, 可以通过加 --skip-broken 进行尝试。

#1,首先根据 报错的提示信息 Requires: libqpidclient.so.5()(64bit) 猜测系统环境变量的路径中缺少库文件,在系统中查找并创建软链接或拷贝到对饮的目录下。

找到在/usr/lib64下存在libqpidclient.so.5 和 libqpidclient.so.5.0.0 两个文件,尝试创建软链接到/usr/loacl/lib64/,重试,问题未能解决。

#2,将/usr.lib64下libqpid*拷贝到/usr/loacl/lib64/,重试,问题未能解决。

[[email protected] lib64]# ll
total 0
lrwxrwxrwx. 1 root root 33 Nov 14 19:30 libqpidclient.so.5.0.0 -> /usr/lib64/libqpidclient.so.5.0.0
[[email protected] ~]#
[[email protected] ~]# ln -s  /usr/lib64/libqpidclient.so.5 /usr/local/lib64/
[[email protected] ~]#
[[email protected] lib64]# cp  /usr/lib64/lib
Display all 505 possibilities? (y or n)
[[email protected] lib64]# cp  /usr/lib64/libqpid
libqpidbroker.so.5         libqpidcommon.so.5         libqpidtypes.so.1
libqpidbroker.so.5.0.0     libqpidcommon.so.5.0.0     libqpidtypes.so.1.2.0
libqpidclient.so.5         libqpidmessaging.so.3
libqpidclient.so.5.0.0     libqpidmessaging.so.3.1.0
[[email protected] lib64]# cp  /usr/lib64/libqpid* ./

#3,前面的方法无果,遂尝试 yum -y update --skip-broken 

#4,升级过程跳过忽略的坏的依赖,顺利完成,重启设备查看,升级成功。

#5,网络查询,寻求更多的方法进行操作。

#更新详细过程:

[[email protected] lib64]# yum  -y update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* c6-media:
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
....
....省略若干行....
....
--> Running transaction check
---> Package ORBit2.x86_64 0:2.14.17-3.1.el6 will be updated
....
....省略若干行....
....#检查要升级的软件包和需要安装的依赖
--> Finished Dependency Resolution
Error: Package: matahari-host-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidclient.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidclient.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
Error: Package: matahari-service-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidcommon.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidcommon.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
Error: Package: matahari-agent-lib-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidclient.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidclient.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
Error: Package: matahari-network-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidcommon.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidcommon.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
Error: Package: matahari-host-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidcommon.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidcommon.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
Error: Package: matahari-sysconfig-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidclient.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidclient.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
Error: Package: matahari-sysconfig-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidcommon.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidcommon.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
Error: Package: matahari-service-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidclient.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidclient.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
Error: Package: matahari-agent-lib-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidcommon.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidcommon.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
Error: Package: matahari-network-0.4.4-11.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
           Requires: libqpidclient.so.5()(64bit)
           Removing: qpid-cpp-client-0.12-6.el6.x86_64 (@anaconda-CentOS-201112091719.x86_64/6.2)
               libqpidclient.so.5()(64bit)
           Updated By: qpid-cpp-client-0.14-22.el6_3.x86_64 (base)
               Not found
You could try using --skip-broken to work around the problem    ####提示运行 --skip-broken
You could try running: rpm -Va --nofiles --nodigest

#忽略依赖进行升级

[[email protected] lib64]# yum  -y update --skip-broken
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* c6-media:
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
....
....省略若干行....
....
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package xxxx will be updated
---> Package xxxx will be an update
....
....省略若干行....
....
--> Finished Dependency Resolution

#由于依赖问题,忽略的包。
Packages skipped because of dependency problems:
    qpid-cpp-client-0.14-22.el6_3.x86_64 from base
    qpid-cpp-client-ssl-0.14-22.el6_3.x86_64 from base
    qpid-cpp-server-0.14-22.el6_3.x86_64 from base
    qpid-cpp-server-ssl-0.14-22.el6_3.x86_64 from base
    qpid-qmf-0.14-14.el6_3.x86_64 from base

Dependencies Resolved

===================================================================================
Package                     Arch   Version                          Repository
                                                                              Size
===================================================================================
Installing:
kernel                      x86_64 2.6.32-504.1.3.el6               updates  29 M
libjpeg-turbo               x86_64 1.2.1-3.el6_5                    base    174 k
     replacing  libjpeg.x86_64 6b-46.el6
Updating:
ORBit2                      x86_64 2.14.17-5.el6                    base    168 k
atk                         x86_64 1.30.0-1.el6                     base    195 k
....
....省略若干行....
....
Transaction Summary    ##事务概要
===================================================================================
Install       8 Package(s)
Upgrade     207 Package(s)

Total download size: 177 M
Downloading Packages:
(1/215): ORBit2-2.14.17-5.el6.x86_64.rpm                    | 168 kB     00:00
....
....省略若干行....
....
(215/215): zlib-1.2.3-29.el6.x86_64.rpm                     |  73 kB     00:00
-----------------------------------------------------------------------------------
Total                                              4.6 MB/s | 177 MB     00:38
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libgcc-4.4.7-11.el6.x86_64                                    1/423
  Updating   : cjkuni-fonts-common-0.2.20080216.1-36.el6.noarch              2/423
  Updating   : setup-2.8.14-20.el6_4.1.noarch                                3/423
warning: /etc/group created as /etc/group.rpmnew
warning: /etc/gshadow created as /etc/gshadow.rpmnew
warning: /etc/shadow created as /etc/shadow.rpmnew
  Updating   : centos-release-6-6.el6.centos.12.2.x86_64                     4/423
warning: /etc/issue created as /etc/issue.rpmnew
warning: /etc/yum.repos.d/CentOS-Base.repo created as /etc/yum.repos.d/CentOS-Base.repo.rpmnew
warning: /etc/yum.repos.d/CentOS-Media.repo created as /etc/yum.repos.d/CentOS-Media.repo.rpmnew
  Updating   : tzdata-2014i-1.el6.noarch                                     5/423
....
....省略若干行....
....
  Updating   : pam-1.1.1-20.el6.x86_64                                      78/423
warning: /etc/security/limits.conf created as /etc/security/limits.conf.rpmnew
   ....
....省略若干行....
....
warning: /etc/sysctl.conf created as /etc/sysctl.conf.rpmnew
   ....
....省略若干行....
....
  Updating   : selinux-policy-targeted-3.7.19-260.el6.noarch               181/423
***************************************
  Updating   : system-config-firewall-base-1.2.27-7.1.el6.noarch           182/423
  Updating   : lvm2-2.02.111-2.el6.x86_64                                  183/423
  Updating   : openssh-server-5.3p1-104.el6_6.1.x86_64                     184/423
warning: /etc/ssh/sshd_config created as /etc/ssh/sshd_config.rpmnew
  Updating   : openssh-clients-5.3p1-104.el6_6.1.x86_64                    185/423
  Updating   : bfa-firmware-3.2.23.0-2.el6.noarch                          186/423
  Updating   : vsftpd-2.2.2-13.el6_6.1.x86_64                              187/423
warning: /etc/vsftpd/vsftpd.conf created as /etc/vsftpd/vsftpd.conf.rpmnew
  Updating   : avahi-0.6.25-15.el6.x86_64                                  188/423
  Updating   : boost-1.41.0-25.el6.x86_64                                  189/423
  Updating   : passwd-0.77-4.el6_2.2.x86_64                                190/423
  Updating   : gnupg2-2.0.14-8.el6.x86_64                                  191/423
  Updating   : sudo-1.8.6p3-15.el6.x86_64                                  192/423
warning: /etc/sudoers created as /etc/sudoers.rpmnew
  Updating   : authconfig-6.1.12-19.el6.x86_64                             193/423
  Updating   : 1:grub-0.97-93.el6.x86_64                                   194/423
....
....省略若干行....
....
  Cleanup    : tzdata-2011l-4.el6.noarch                                   422/423
  Cleanup    : libgcc-4.4.6-3.el6.x86_64                                   423/423

#最终升级结果

Installed:
  kernel.x86_64 0:2.6.32-504.1.3.el6      libjpeg-turbo.x86_64 0:1.2.1-3.el6_5    

Dependency Installed:
  device-mapper-persistent-data.x86_64 0:0.3.2-1.el6
  gdk-pixbuf2.x86_64 0:2.24.1-5.el6
  libpciaccess.x86_64 0:0.13.3-0.1.el6
  nss-tools.x86_64 0:3.16.1-14.el6
  p11-kit.x86_64 0:0.18.5-2.el6_5.2
  p11-kit-trust.x86_64 0:0.18.5-2.el6_5.2                                         

Updated:
  ORBit2.x86_64 0:2.14.17-5.el6
   ....
....省略若干行....
....
  zlib.x86_64 0:1.2.3-29.el6                                                      

Skipped (dependency problems):
  qpid-cpp-client.x86_64 0:0.14-22.el6_3
  qpid-cpp-client-ssl.x86_64 0:0.14-22.el6_3
  qpid-cpp-server.x86_64 0:0.14-22.el6_3
  qpid-cpp-server-ssl.x86_64 0:0.14-22.el6_3
  qpid-qmf.x86_64 0:0.14-14.el6_3                                                 

Replaced:
  libjpeg.x86_64 0:6b-46.el6                                                      

Complete!
[[email protected] lib64]# uname -r2.6.32-220.el6.x86_64  ##此时查看系统内核仍然为老版本,应该需要升级才能生效,需要检查远程连接的相关内容,防患于未然,不要重启设备连不上机器了。

#需要查看那几个warning的地方:/etc/ssh/sshd_config;/etc/sudoers

[[email protected] lib64]#
[email protected] lib64]# ll /etc/ssh/sshd_config*
-rw-------. 1 root root 4050 Nov 13 19:51 /etc/ssh/sshd_config
-rw-------. 1 root root 3879 Nov 13 16:54 /etc/ssh/sshd_config.rpmnew
[[email protected] lib64]# ll /etc/sudoers*
-r--r-----. 1 root root 3843 Nov 13 19:44 /etc/sudoers
-r--r-----. 1 root root 4002 Mar  2  2012 /etc/sudoers.rpmnew

/etc/sudoers.d:
total 0
##从这里看,重启应该不会有问题,刚才测试克隆会话也没问题。尝试重启设备!
[[email protected] lib64]# reboot

Broadcast message from [email protected]
        (/dev/pts/2) at 20:12 ...

The system is going down for reboot NOW!
[[email protected] ~]# 

# 重启过程中长ping设备,观察设备更新后的启动情况

64 bytes from 123.123.123.123: icmp_seq=279 ttl=52 time=1.16 ms
64 bytes from 123.123.123.123: icmp_seq=280 ttl=52 time=1.20 ms
^C
--- 123.123.123.123 ping statistics ---
##160秒左右后设备启动成功##
280 packets transmitted, 125 received, 55% packet loss, time 279953ms
rtt min/avg/max/mdev = 1.132/1.304/2.598/0.216 ms
[[email protected] test]# 

#登陆查看

Last login: Fri Nov 14 20:08:52 2014 from xxx.xxx.242.195
This is a product environment, Operate carefully!
[[email protected] ~]$ sudo su  -
[[email protected] ~]# uname -r
2.6.32-504.1.3.el6.x86_64
[[email protected] ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)
[[email protected] ~]# 

事后查询

至此,虽然系统升级完毕,但是我对上面的报错还是感觉很不理解。

于是google查询此报错,果然查到些答案:

#1,http://blog.chinaunix.net/uid-16209138-id-4269253.html

#2,http://luestudy.blog.51cto.com/8480481/1366090

这两篇文章中的做法都是卸载掉qpid-cpp-client及其依赖

#3,http://lhj0206.blog.163.com/blog/static/1237867920140164333968/

这名网易网友的解决方法卸载matahari*

yum -y remove matahari*

这种方法的效果跟上面的方法应该是一样的,我没有测试。

既然大家通过卸载这个软件可以解决问题,我就需要了解这个软件到底是干嘛的?是否可以卸载?

经查询:

QPID是个消息队列,用他有什么好处呢 ,可以跨平台使用,比如业务部分用C实现,把需要共享的信息通过QPID来传递,然后JAVA侧再从QPID接受消息。

本例中的qpid-cpp-client就是qpid基于C++语言的实现的客户端。

※在确定完该软件包的用途之后,结合我的自身情况,我也尝试使用第一种方法:yum -y remove qpid-cpp-client进行卸载。 

[[email protected] lib64]# yum -y remove qpid-cpp-client
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package qpid-cpp-client.x86_64 0:0.12-6.el6 will be erased
--> Processing Dependency: libqpidclient.so.5()(64bit) for package: matahari-network-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidclient.so.5()(64bit) for package: matahari-host-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidclient.so.5()(64bit) for package: matahari-sysconfig-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidclient.so.5()(64bit) for package: matahari-agent-lib-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidclient.so.5()(64bit) for package: matahari-service-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidclient.so.5()(64bit) for package: qpid-qmf-0.12-6.el6.x86_64
--> Processing Dependency: libqpidclient.so.5()(64bit) for package: qpid-cpp-client-ssl-0.12-6.el6.x86_64
--> Processing Dependency: libqpidcommon.so.5()(64bit) for package: matahari-network-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidcommon.so.5()(64bit) for package: matahari-host-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidcommon.so.5()(64bit) for package: matahari-sysconfig-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidcommon.so.5()(64bit) for package: matahari-agent-lib-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidcommon.so.5()(64bit) for package: matahari-service-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidcommon.so.5()(64bit) for package: qpid-qmf-0.12-6.el6.x86_64
--> Processing Dependency: libqpidcommon.so.5()(64bit) for package: qpid-cpp-server-ssl-0.12-6.el6.x86_64
--> Processing Dependency: libqpidcommon.so.5()(64bit) for package: qpid-cpp-client-ssl-0.12-6.el6.x86_64
--> Processing Dependency: libqpidcommon.so.5()(64bit) for package: qpid-cpp-server-0.12-6.el6.x86_64
--> Processing Dependency: libqpidmessaging.so.3()(64bit) for package: matahari-network-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidmessaging.so.3()(64bit) for package: matahari-host-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidmessaging.so.3()(64bit) for package: matahari-sysconfig-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidmessaging.so.3()(64bit) for package: matahari-agent-lib-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidmessaging.so.3()(64bit) for package: matahari-service-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidmessaging.so.3()(64bit) for package: qpid-qmf-0.12-6.el6.x86_64
--> Processing Dependency: libqpidtypes.so.1()(64bit) for package: matahari-network-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidtypes.so.1()(64bit) for package: matahari-host-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidtypes.so.1()(64bit) for package: matahari-sysconfig-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidtypes.so.1()(64bit) for package: matahari-agent-lib-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidtypes.so.1()(64bit) for package: matahari-service-0.4.4-11.el6.x86_64
--> Processing Dependency: libqpidtypes.so.1()(64bit) for package: qpid-qmf-0.12-6.el6.x86_64
--> Processing Dependency: libqpidtypes.so.1()(64bit) for package: qpid-cpp-server-ssl-0.12-6.el6.x86_64
--> Processing Dependency: libqpidtypes.so.1()(64bit) for package: qpid-cpp-client-ssl-0.12-6.el6.x86_64
--> Processing Dependency: libqpidtypes.so.1()(64bit) for package: qpid-cpp-server-0.12-6.el6.x86_64
--> Processing Dependency: qpid-cpp-client = 0.12-6.el6 for package: qpid-cpp-server-0.12-6.el6.x86_64
--> Processing Dependency: qpid-cpp-client = 0.12-6.el6 for package: qpid-cpp-client-ssl-0.12-6.el6.x86_64
--> Processing Dependency: qpid-cpp-client = 0.12 for package: qpid-qmf-0.12-6.el6.x86_64
--> Running transaction check
---> Package matahari-agent-lib.x86_64 0:0.4.4-11.el6 will be erased
--> Processing Dependency: matahari-agent-lib = 0.4.4-11.el6 for package: matahari-broker-0.4.4-11.el6.x86_64
---> Package matahari-host.x86_64 0:0.4.4-11.el6 will be erased
--> Processing Dependency: matahari-host for package: matahari-0.4.4-11.el6.x86_64
---> Package matahari-network.x86_64 0:0.4.4-11.el6 will be erased
---> Package matahari-service.x86_64 0:0.4.4-11.el6 will be erased
---> Package matahari-sysconfig.x86_64 0:0.4.4-11.el6 will be erased
---> Package qpid-cpp-client-ssl.x86_64 0:0.12-6.el6 will be erased
---> Package qpid-cpp-server.x86_64 0:0.12-6.el6 will be erased
---> Package qpid-cpp-server-ssl.x86_64 0:0.12-6.el6 will be erased
---> Package qpid-qmf.x86_64 0:0.12-6.el6 will be erased
--> Running transaction check
---> Package matahari.x86_64 0:0.4.4-11.el6 will be erased
---> Package matahari-broker.x86_64 0:0.4.4-11.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
Package        Arch   Version      Repository                                Size
===================================================================================
Removing:
qpid-cpp-client
                x86_64 0.12-6.el6   @anaconda-CentOS-201112091719.x86_64/6.2 3.9 M
Removing for dependencies:
matahari       x86_64 0.4.4-11.el6 @anaconda-CentOS-201112091719.x86_64/6.2  18 k
matahari-agent-lib
                x86_64 0.4.4-11.el6 @anaconda-CentOS-201112091719.x86_64/6.2  81 k
matahari-broker
                x86_64 0.4.4-11.el6 @anaconda-CentOS-201112091719.x86_64/6.2  32 k
matahari-host  x86_64 0.4.4-11.el6 @anaconda-CentOS-201112091719.x86_64/6.2 103 k
matahari-network
                x86_64 0.4.4-11.el6 @anaconda-CentOS-201112091719.x86_64/6.2  72 k
matahari-service
                x86_64 0.4.4-11.el6 @anaconda-CentOS-201112091719.x86_64/6.2 126 k
matahari-sysconfig
                x86_64 0.4.4-11.el6 @anaconda-CentOS-201112091719.x86_64/6.2  54 k
qpid-cpp-client-ssl
                x86_64 0.12-6.el6   @anaconda-CentOS-201112091719.x86_64/6.2 332 k
qpid-cpp-server
                x86_64 0.12-6.el6   @anaconda-CentOS-201112091719.x86_64/6.2 3.2 M
qpid-cpp-server-ssl
                x86_64 0.12-6.el6   @anaconda-CentOS-201112091719.x86_64/6.2 121 k
qpid-qmf       x86_64 0.12-6.el6   @anaconda-CentOS-201112091719.x86_64/6.2 1.4 M

Transaction Summary
===================================================================================
Remove       12 Package(s)

Installed size: 9.5 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : matahari-0.4.4-11.el6.x86_64                                   1/12
  Erasing    : matahari-broker-0.4.4-11.el6.x86_64                            2/12
  Erasing    : qpid-cpp-server-ssl-0.12-6.el6.x86_64                          3/12
  Erasing    : matahari-host-0.4.4-11.el6.x86_64                              4/12
  Erasing    : matahari-network-0.4.4-11.el6.x86_64                           5/12
  Erasing    : matahari-service-0.4.4-11.el6.x86_64                           6/12
  Erasing    : matahari-sysconfig-0.4.4-11.el6.x86_64                         7/12
  Erasing    : matahari-agent-lib-0.4.4-11.el6.x86_64                         8/12
  Erasing    : qpid-qmf-0.12-6.el6.x86_64                                     9/12
  Erasing    : qpid-cpp-client-ssl-0.12-6.el6.x86_64                         10/12
  Erasing    : qpid-cpp-server-0.12-6.el6.x86_64                             11/12
  Erasing    : qpid-cpp-client-0.12-6.el6.x86_64                             12/12
  Verifying  : matahari-sysconfig-0.4.4-11.el6.x86_64                         1/12
  Verifying  : matahari-service-0.4.4-11.el6.x86_64                           2/12
  Verifying  : matahari-broker-0.4.4-11.el6.x86_64                            3/12
  Verifying  : matahari-host-0.4.4-11.el6.x86_64                              4/12
  Verifying  : qpid-cpp-client-0.12-6.el6.x86_64                              5/12
  Verifying  : matahari-agent-lib-0.4.4-11.el6.x86_64                         6/12
  Verifying  : matahari-network-0.4.4-11.el6.x86_64                           7/12
  Verifying  : qpid-qmf-0.12-6.el6.x86_64                                     8/12
  Verifying  : qpid-cpp-server-0.12-6.el6.x86_64                              9/12
  Verifying  : matahari-0.4.4-11.el6.x86_64                                  10/12
  Verifying  : qpid-cpp-client-ssl-0.12-6.el6.x86_64                         11/12
  Verifying  : qpid-cpp-server-ssl-0.12-6.el6.x86_64                         12/12

Removed:
  qpid-cpp-client.x86_64 0:0.12-6.el6                                             

Dependency Removed:
  matahari.x86_64 0:0.4.4-11.el6
  matahari-agent-lib.x86_64 0:0.4.4-11.el6
  matahari-broker.x86_64 0:0.4.4-11.el6
  matahari-host.x86_64 0:0.4.4-11.el6
  matahari-network.x86_64 0:0.4.4-11.el6
  matahari-service.x86_64 0:0.4.4-11.el6
  matahari-sysconfig.x86_64 0:0.4.4-11.el6
  qpid-cpp-client-ssl.x86_64 0:0.12-6.el6
  qpid-cpp-server.x86_64 0:0.12-6.el6
  qpid-cpp-server-ssl.x86_64 0:0.12-6.el6
  qpid-qmf.x86_64 0:0.12-6.el6                                                    

Complete!

#再次尝试更新系统,没有报错,提示已经没有可用的更新了。

[[email protected] lib64]# yum -y update
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* c6-media:
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
file:///media/CentOS/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/CentOS/repodata/repomd.xml
Trying other mirror.
file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrecorder/repodata/repomd.xml
Trying other mirror.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///media/cdrom/repodata/repomd.xml
Trying other mirror.
No Packages marked for Update
[[email protected] lib64]# 
时间: 2024-09-29 11:42:49

通过 yum update 将系统从CentOS 6.2 升级到 CentOS 6.6 及升级过程中的简单排错的相关文章

录像过程中系统时间改变了,怎么避免带来的悲剧

在android系统上,我们知道改变系统时间的方法有两种,一种就是通过再设置应用里面设置日期时间,第二种就是通过网络后台同步时间,在手机平板上这两种是比較多的,当然作为车载设备.一般还会添加用GPS时间来同步系统时间. 系统时间改变有这么几种方式.可是在录像过程中系统时间改变了,会有什么危害呢? 通过笔者的实验.假设開始录像是2014年5月20日10点整開始,过了一分钟.添加通过网络已经同步改动了系统时间到2014年7月1日,那么即使这个录像文件实际上仅仅录了5分钟.我们回放这个文件的时候显示的

CentOS下的yum upgrade和yum update区别,没事别乱用,和Ubuntu的update不一样!

说明:生产环境对软件版本和内核版本要求非常精确,别没事有事随便的进行yum update操作!!!!!!!!! yum update:升级所有包同时也升级软件和系统内核 yum upgrade:只升级所有包,不升级软件和系统内核 测试样例: 一.升级前 系统版本: centos5.5 内核版本: 2.6.18-194.el5 二.yum upgrade 升级后,只升级所有包,不升级软件和系统内核 系统版本: centos5.7 内核版本: 2.6.18-194.el5 三.yum update

centos yum update kernel

1.查看当前kernel版本 uname -r 2.查看已安装版本 rpm -q kernel 3.查看可升级kernel版本 yum list kernel 4.升级kernel版本 yum update kernel 5.删除旧的内核 方法一:安装yum-utls: yum install -y yum-utils 设置你想要保留多少旧的内核,比如我想保留两个: sudo package-cleanup --oldkernels --count=2 方法二:直接删除对应版本 rpm -e k

CentOS yum update 与 yum upgrade 区别

yum -y update 升级所有包同时也升级软件和系统内核 yum -y upgrade 只升级所有包,不升级软件和系统内核 官方文档:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-yum 通常我们这样做: yum check-update 检测可更新软件包 yum update package_name 更新指定包 yu

yum update

Linux升级命令有两个分别是yum upgrade和yum update, 这个两个命令是有区别的:代码如下:yum -y update升级所有包同时也升级软件和系统内核 代码如下:yum -y upgrade只升级所有包,不升级软件和系统内核实验分别测试 yum -y upgrade和yum -y update 升级前 系统版本:  centos5.5内核版本:  2.6.18-194.el5 升级前做过简单配置文件修改 yum -y upgrade    升级后 系统版本:    cent

yum update upgrade区别

今天在做centos的内核升级测试,在使用源码升级的时候,在网上开到在升级内核之前先进行yum update.yum upgrade.这个两个到底有什么区别吗?网上搜索了一大把发现全是这样的说法: yum -y update 升级所有包,改变软件设置和系统设置,系统版本内核都升级 yum -y upgrade 升级所有包,不改变软件设置和系统设置,系统版本升级,内核不改变 而且还信誓旦旦的贴上了测试结果,真的是这样的吗???!!!我们还是看下man yum 是怎么说的吧!!! update If

yum update 报错db4 - 4.3.29-10.el5_5.2.i386

在Linux系统中通过yum update 时,报错如下: Error Downloading Packages: db4 - 4.3.29-10.el5_5.2.i386: failure: CentOS/db4-4.3.29-10.el5_5.2.i386.rpm from base: [Errno 256] No more mirrors to try. 初步判断是yum源中缺少db4-4.3.29-10.el5_5.2.i386.rpm 些文件,解决方法是:通过对比系统版本,下载相应文件

Linux服务器执行yum update不成功

Linux服务器执行yum update报错提示: Loaded plugins: fastestmirror, refresh-packagekit, security You need to be root to perform this command. Centons下其大概意思是fastestmirror不能使用,fastestmirror是yum的一个加速插件,具体我也没有仔细了解过,可能是系统不支持或者缺少组建导致的.处理办法就是禁用这个插件,方法如下:[email protect

centos7系统升级后yum update 出错No module named pycurl

Centos7升级后,运行yum update 结果如下 :]# yum updateThere was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: No module named pycurl Please install a package which provides this module, orverify that th