我无法使用我的托管存储库安装包

I am not able to install package using my hosted repository

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" 在 repo 中可用,但我收到上述错误。

我已经尝试清理、禁用和启用 repo,但仍然没有成功。非常感谢对此的任何帮助。

调试它的一个步骤是列出存储库并查看列表中的内容:

# 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. 正在尝试从存储库中 wget 包。虽然连接成功,但我无法下载软件包。 2.我的队友分析了 repo 中的挂载,我们知道它们没有正确挂载,所以他重新挂载了文件系统和 post 我能够下载并且它也解决了安装步骤。