yum -d0 -e0 -y --disablerepo\=\* --enablerepo\=my-repo-name install ksh-20120801-34.el7
给予:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Error downloading packages:
ksh-20120801-34.el7.x86_64: [Errno 256] No more mirrors to try.
虽然回购中有“ ksh-20120801-34.el7”,但出现上述错误。
我曾尝试清理,禁用和启用回购协议,但仍然没有运气。在这方面的任何帮助都将不胜感激。
答案 0 :(得分:2)
调试它的第一步是列出存储库,然后查看列表中的内容:
# yum --disablerepo=* --enablerepo=my-repo-name list | grep ksh
您也可以尝试不带后缀20120801-34.el7
。因此,命令如下:
yum -d0 -e0 -y --disablerepo=* --enablerepo=my-repo-name install ksh
[root@ms-node0101 ~]# yum install -y ksh.el7
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No package ksh.el7 available.
Error: Nothing to do
[root@ms-node0101 ~]# yum install ksh-20120801-139
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No package ksh-20120801-139 available.
Error: Nothing to do
[root@ms-node0101 ~]# yum install -y ksh
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package ksh.x86_64 0:20120801-139.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
ksh x86_64 20120801-139.el7 Local-Base 885 k
Transaction Summary
=============================================================================================================================================================================================================================================
Install 1 Package
Total download size: 885 k
Installed size: 3.1 M
Downloading packages:
ksh-20120801-139.el7.x86_64.rpm | 885 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : ksh-20120801-139.el7.x86_64 1/1
Verifying : ksh-20120801-139.el7.x86_64 1/1
Installed:
ksh.x86_64 0:20120801-139.el7
Complete!
答案 1 :(得分:0)
感谢大家在这里帮助我。就我而言,解决方案很简单,调试如下所示。