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

时间:2019-09-26 08:42:21

标签: repository redhat rpm

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”,但出现上述错误。

我曾尝试清理,禁用和启用回购协议,但仍然没有运气。在这方面的任何帮助都将不胜感激。

2 个答案:

答案 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)

感谢大家在这里帮助我。就我而言,解决方案很简单,调试如下所示。

  1. 正在尝试从仓库中获取软件包。虽然连接成功,但我无法下载该软件包。 2。我的队友分析了回购中的挂载,我们知道它们没有正确挂载,因此他重新挂载了文件系统并发布了我能够下载的信息,它也解决了安装步骤。