环境:
[红帽企业Linux.6.4.服务器版].rhel-server-6.4-x86_64-dvd(ED2000.COM).iso
安装时选用Software Development Workstation
问题描述:
yum安装DHCP服务时输出
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
[root@localhost yum.repos.d]# yum list | grep dhcp dhcp-common.x86_64 12:4.1.1-34.P1.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4 dhcp.x86_64 12:4.1.1-34.P1.el6 vcd sblim-cmpi-dhcp.i686 1.0-1.el6 vcd sblim-cmpi-dhcp.x86_64 1.0-1.el6 vcd [root@localhost yum.repos.d]# yum -y install dhcp Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package dhcp.x86_64 12:4.1.1-34.P1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: dhcp x86_64 12:4.1.1-34.P1.el6 vcd 816 k Transaction Summary =================================================================================================================================== Install 1 Package(s) Total download size: 816 k Installed size: 1.9 M Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : 12:dhcp-4.1.1-34.P1.el6.x86_64 1/1 vcd/productid | 1.7 kB 00:00 ... ERROR:dbus.proxies:Introspect error on :1.107:/org/freedesktop/PackageKit: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Unable to send message to PackageKit Verifying : 12:dhcp-4.1.1-34.P1.el6.x86_64 1/1 Installed: dhcp.x86_64 12:4.1.1-34.P1.el6 Complete!
yum卸载DHCP时
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
[root@localhost yum.repos.d]# yum -y remove dhcp Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package dhcp.x86_64 12:4.1.1-34.P1.el6 will be erased --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Removing: dhcp x86_64 12:4.1.1-34.P1.el6 @vcd 1.9 M Transaction Summary =================================================================================================================================== Remove 1 Package(s) Installed size: 1.9 M Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Erasing : 12:dhcp-4.1.1-34.P1.el6.x86_64 1/1 ERROR:dbus.proxies:Introspect error on :1.107:/org/freedesktop/PackageKit: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Unable to send message to PackageKit Verifying : 12:dhcp-4.1.1-34.P1.el6.x86_64 1/1 Removed: dhcp.x86_64 12:4.1.1-34.P1.el6 Complete!
这两种情况下都有报错信息
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
ERROR:dbus.proxies:Introspect error on :1.107:/org/freedesktop/PackageKit: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Unable to send message to PackageKit
原因分析:
因为是两台不同的机器同时指向同一个YUM源,其中一台机器已经通过yum install xx -y命令成功安装所需软件,而另外一台却不行,可以排除不是YUM源的问题,也不是网络的问题,那肯定是本机的问题了,
查看日志发现PackageKit这个词频繁出现,所以目标定位在这个PackageKit上面,查阅得知PackageKit是一款新的Linux包管理器,但是既然这边包这个错误,删除之是否可行?
解决办法:
yum remove PackageKit* -y //删除该管理器