Hello, everyone. I am a Software Engineering student from China. My English is not very good so I would try my best to make myself clear.
I have been following the guidance from https://github.com/cmusatyalab/elijah-openstack to install openstack++, but whenever I execute
ansible-playbook -i ./hosts openstack-kilo.yaml
I always got this error
TASK [openstack-common : (OS-COMMON) update cache and perform upgrade] *********
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to update apt cache."}
Weird thing is: I have succeeded before (about several days ago) with the same steps. But after I reinstalled Ubuntu 14.04 system, I always got the error above.
I have tried sudo rm -vf /var/lib/apt/lists/*
and sudo apt-get update
, but it didn't work for me .
What's more, when I was installing Ansible using
$ apt-get install software-properties-common
$ apt-add-repository -y ppa:ansible/ansible
$ apt-get update
$ apt-get install -y ansible git
After the third step (apt-get update), I got some Hash Sum mismatch like this:
W: Failed to fetch http://ppa.launchpad.net/ansible/ansible/ubuntu/dists/trusty/main/i18n/Translation-en Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
Not sure if that has something to do with the "Failed to update apt cache " error.
I have been running this on a physical machine, with
Ububtu 14.04
RAM: 4GB
CPU: Intel Core i3-2310M CPU @ 2.10GHz * 4
OS type: 64-bit
Disk: 740 GB
I have been stuck for days, any help will be appreciated!