本文写于2014年的WP中,后WP停止维护,今天翻到此记录整理下,记录于此,方便日后查看.
话说那时候写博客真是认真啊~哈哈~
#3,前面的方法无果,遂尝试 yum -y update --skip-broken
#4,升级过程跳过忽略的坏的依赖,顺利完成,重启设备查看,升级成功。 #5,网络查询,寻求更多的方法进行操作。 #更新详细过程: [root@thatsit 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
#忽略依赖进行升级
[root@thatsit 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! [root@thatsit lib64]# uname -r2.6.32-220.el6.x86_64 ##此时查看系统内核仍然为老版本,应该需要升级才能生效,需要检查远程连接的相关内容,防患于未然,不要重启设备连不上机器了。
#需要查看那几个warning的地方:/etc/ssh/sshd_config;/etc/sudoers
[root@thatsit lib64]# root@thatsit 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 [root@thatsit 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 ##从这里看,重启应该不会有问题,刚才测试克隆会话也没问题。尝试重启设备! [root@thatsit lib64]# reboot Broadcast message from thatsit@thatsit (/dev/pts/2) at 20:12 ... The system is going down for reboot NOW! [root@thatsit ~]## 重启过程中长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 [root@xx1 test]#
#登陆查看
Last login: Fri Nov 14 20:08:52 2014 from xxx.xxx.242.195 This is a product environment, Operate carefully! [thatsit@thatsit ~]$ sudo su - [root@thatsit ~]# uname -r 2.6.32-504.1.3.el6.x86_64 [root@thatsit ~]# cat /etc/redhat-release CentOS release 6.6 (Final) [root@thatsit ~]##再次尝试更新系统,没有报错,提示已经没有可用的更新了。 [root@thatsit 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 [root@thatsit lib64]#
转载于:https://www.cnblogs.com/thatsit/p/5233349.html
