请指教
当我安装 RPM 时 - subscription-manager-1.11.3-14.el5_11.i386.rpm
它因缺少 RPM(依赖项)而失败
但 RPM 已经安装了 - 怎么可能呢?
20:37:23 root@obama:/tmp # rpm -i subscription-manager-1.11.3-14.el5_11.i386.rpm
error: Failed dependencies:
pygobject2 is needed by subscription-manager-1.11.3-14.el5_11.i386
python-rhsm >= 1.11.3-5 is needed by subscription-manager-1.11.3- 14.el5_11.i386
20:37:34 root@obama:/tmp # rpm -qa|grep pygobject
pygobject2-doc-2.12.1-5.el5
20:37:46 root@obama:/tmp # rpm -qa|grep python-rhsm
python-rhsm-1.8.17-1.el5
20:37:57 root@obama:/tmp #
或者
yum localinstall pygobject2-doc-2.12.1-5.el5.i386.rpm
Loaded plugins: downloadonly, rhnplugin
Setting up Local Package Process
Examining pygobject2-doc-2.12.1-5.el5.i386.rpm: pygobject2-doc-2.12.1-5.el5.i386
pygobject2-doc-2.12.1-5.el5.i386.rpm: does not update installed package.
没事做
这是本地机器无法连接到外部网络
答案1
rpm
命令不解析依赖关系。尝试yum install subscription-manager
一下。 Yum 将解决依赖关系。