简体   繁体   English

在CentOS 7上安装木偶

[英]Installing puppet on CentOS 7

At the moment I have a little issue with installing/downloading puppet on CentOS 7. The command that have been used is: 'sudo rpm -ivh https://yum.puppetlabs.com/puppetlab...l-7.noarch.rpm ' 目前,我在CentOS 7上安装/下载人偶有一个小问题。已经使用的命令是:'sudo rpm -ivh https://yum.puppetlabs.com/puppetlab...l-7.noarch。转速 '

Then I'm getting the following error: 'Retreiving https://yum.puppetlabs.com/puppetlab...l-7.noarch.rpm curl: (6) could not resolve host: yum.puppetlabs.com; 然后我得到以下错误:'检索https://yum.puppetlabs.com/puppetlab...l-7.noarch.rpm curl:(6)无法解析主机:yum.puppetlabs.com; unkown error error: skipping https://yum.puppetlabs.com/puppetlab...l-7.noarch.rpm transfer failed' 未知错误错误:跳过https://yum.puppetlabs.com/puppetlab...l-7.noarch.rpm传输失败'

The link (above) is working whenever I try to download it outside of Linux / VirtualBox, but not inside. 每当我尝试在Linux / VirtualBox外部而不是内部下载链接时,以上链接均有效。 Also ping some random website doesn't work but I have read that's a commmon issue at VirtualBox. 另外,对一些随机网站执行ping操作不起作用,但我已阅读到VirtualBox的常见问题。 It even can't ping my own router, and it's giving me this error: 'connect: Network is unreachable' 它甚至无法ping通我自己的路由器,并且给了我这个错误:“连接:网络不可达”

At the moment I have put the network options to NAT. 目前,我已将网络选项设置为NAT。 I'm running CentOS inside VirtualBox. 我在VirtualBox中运行CentOS。 Anyone know the issue of this error ? 有人知道这个错误的问题吗?

Thanks in advance. 提前致谢。

Tagging your post with VirtualBox might help. 使用VirtualBox标记您的帖子可能会有所帮助。

But anyway, the most common cause of this is VirtualBox DNS problems, I usually just change the nameserver in /etc/resolv.conf to 8.8.8.8 and that fixes it. 但是无论如何,最常见的原因是VirtualBox DNS问题,我通常只是将/etc/resolv.confnameserver更改为8.8.8.8并对其进行了修复。 You can also just reload the VM. 您也可以只重新加载VM。

The solution to this problem is by simply reïnstalling. 解决这个问题的方法就是简单地重新安装。 Installed some packages and turning the internet connection switch on before the installation (doh) 安装一些软件包并在安装之前打开Internet连接开关(doh)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM