我正在RHEL 6上运行,运行这些代码时出现此错误:
```
[root@Server1 Packages]#yum -y install tftp-sever
Error Downloading Packages:
tftp-server-0.49-5.1.el6.i686: failure: Packages/tftp-server-0.49-5.1.el6.i686.rpm from InstallMedia: [Errno 256] No more mirrors to try.
```
有帮助吗?
首先使用以下命令清理YUM的缓存:
# yum clean all
然后,检查是否有包含tftp-server
软件包的存储库,其中包括:
$ yum info tftp-server
输出应该类似于:
Name : tftp-server
Arch : x86_64
Version : 0.49
Release : 8.el6
Size : 57 k
Repo : installed
From repo : base
Summary : The server for the Trivial File Transfer Protocol (TFTP)
URL : http://www.kernel.org/pub/software/network/tftp/
License : BSD
Description : The Trivial File Transfer Protocol (TFTP) is normally used only for
: booting diskless workstations. The tftp-server package provides the
: server for TFTP, which allows users to transfer files to and from a
: remote machine. TFTP provides very little security, and should not be
: enabled unless it is expressly needed. The TFTP server is run from
: /etc/xinetd.d/tftp, and is disabled by default.
请注意,此软件包应包含在base
存储库中:
来自回购:基础
但是,从您的输出中,似乎YUM试图从名为InstallMedia
的存储库中获取它。验证是否没有在/etc/yum.repos.d/*repo下启用损坏的存储库,然后尝试再次安装。