简体   繁体   中英

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 '

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; unkown error error: skipping https://yum.puppetlabs.com/puppetlab...l-7.noarch.rpm transfer failed'

The link (above) is working whenever I try to download it outside of Linux / VirtualBox, but not inside. Also ping some random website doesn't work but I have read that's a commmon issue at VirtualBox. It even can't ping my own router, and it's giving me this error: 'connect: Network is unreachable'

At the moment I have put the network options to NAT. I'm running CentOS inside VirtualBox. Anyone know the issue of this error ?

Thanks in advance.

Tagging your post with VirtualBox might help.

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. You can also just reload the 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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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