5
但是当我使用时 yum 不起作用
[root@localhost ~]# rpm -q yum yum-3.2.22-26.el5
当我跑步时
[root@localhost ~]# yum update
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Skipping security plugin, no data
Setting up Update Process
No Packages marked for Update
当我尝试安装另一个版本的 yum 时,它给出
[root@localhost ~]# rpm -ivh yum-3.2.29-30.el6.noarch.rpm
warning: yum-3.2.29-30.el6.noarch.rpm: Header V4 DSA signature: NOKEY, key ID 192a7d7d
error: Failed dependencies:
pygpgme is needed by yum-3.2.29-30.el6.noarch
python(abi) = 2.6 is needed by yum-3.2.29-30.el6.noarch
python-urlgrabber >= 3.9.0-8 is needed by yum-3.2.29-30.el6.noarch
rpmlib(FileDigests) <= 4.6.0-1 is needed by yum-3.2.29-30.el6.noarch
rpmlib(PayloadIsXz) <= 5.2-1 is needed by yum-3.2.29-30.el6.noarch
yum-basearchonly conflicts with yum-3.2.22-26.el5.noarch
yum-skip-broken conflicts with yum-3.2.22-26.el5.noarch
请帮助我如何使用 yum
答案1
它明确指出您的系统未在 RedHat 注册,而这是获取安全更新所必需的。要么购买/注册支持许可证,要么切换到其他系统(例如 CentOS)。
答案2
看起来您还没有配置任何要使用的存储库yum
,正如@SvenW 所说 - 这里不支持 rhn。检查目录/etc/yum.repos.d
中的配置。