问题描述
我正在尝试在 CentOS7 上安装 puppetserver。我运行了以下命令,首先按照 https://puppet.com/docs/puppet/7.4/install_puppet.html#install_puppet 上的指示启用 puppet 平台:
sudo rpm -Uvh https://yum.puppet.com/puppet7-release-el-7.noarch.rpm
yum install puppetserver -y
我收到以下错误
http://yum.puppetlabs.com/puppet7/el/7/x86_64/puppet-agent-7.4.1-1.el7.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=puppet7 clean Metadata5 MB 00:00:13 ETA
Trying other mirror.
(9/12): net-tools-2.0-0.25.20131004git.el7.x86_64.rpm | 306 kB 00:00:03
puppetserver-7.0.3-1.el7.noarc Failed 53% [==========================================- ] 7.8 MB/s | 65 MB 00:00:07 ETA
http://yum.puppetlabs.com/puppet7/el/7/x86_64/puppetserver-7.0.3-1.el7.noarch.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=puppet7 clean Metadata5 MB 00:00:07 ETA
Trying other mirror.
(10/12): java-1.8.0-openjdk-headless-1.8.0.282.b08-1.el7_9.x86_64.rpm | 33 MB 00:00:15
Error downloading packages:
puppet-agent-7.4.1-1.el7.x86_64: [Errno 256] No more mirrors to try.
puppetserver-7.0.3-1.el7.noarch: [Errno 256] No more mirrors to try.
我已经尝试过的:
- 我安装了其他依赖项,例如 git 和 vim,使用 yum 安装没有问题。
- 我还运行了
yum --enablerepo=puppet7 clean Metadata5
和yum clean all
并尝试直接安装 puppet 服务器,但也无法正常工作。 - 还尝试运行最新版本
sudo rpm -Uvh https://yum.puppet.com/puppet7-release-el-8.noarch.rpm
,将 el7 更改为 el8,但同样的问题仍然存在。
请问有什么建议吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)