Help us understand the problem. What is going on with this article?

VirtualBoxでAnsibleのインストールが出来なかった時の対処方法

本内容は自身のメモを目的としているため解釈や実行内容に不備がある場合があります。

Ansibleに限らずyumコマンドでミラーサイトが見つからない的なエラーが出た際は有効です。

インストールコマンドを叩く

[root@controller ~]# yum install ansible
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
***略***
YCURL ERROR 19 - "Given file does not exist"
Trying other mirror.
ftp://ftp.fedora.is/pub/fedora/epel/6/x86_64/ansible-1.9.4-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 19 - "Given file does not exist"
Trying other mirror.


Error Downloading Packages:
  ansible-1.9.4-1.el6.noarch: failure: ansible-1.9.4-1.el6.noarch.rpm from epel: [Errno 256] No more mirrors to try.

対処コマンド

$ sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo

再度インストールコマンドを叩く

[root@controller ~]# yum install ansible
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
***略***
  sshpass.x86_64 0:1.06-1.el6

Complete!

以上、お疲れさまでした。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした