2017-05-02 21 views
0

我經歷的步驟設置伴侶這裏Chaperone Setup無法設置伴侶開發環境(DE)

提到使用Ubuntu 14.04設立的開發環境。

但是,我堅持步驟「用基本工具安裝DE」。 當我執行命令

cd ansible/playbooks/ansible ansible-playbook --ask-sudo-pass -i inventory ansible.yml

它失敗,錯誤: - 「無法更新緩存容易」

我毫無章法預設如何避免這個錯誤。這將是巨大的,如果有人指導我如何能獲取有關錯誤的詳細信息,引用通告等

錯誤:Task [ansible: update apt cache] ******************************* fatal:[localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to update apt cache."}

謝謝!從評論

+0

我不知道你能說服Ansible在這種情況下,讓您更詳細的錯誤信息。你應該嘗試手動執行'apt-get update'來查看是否有錯誤。 –

+0

@KonstantinSuvorov,'apt-get update'正在拋出一個錯誤404頁面Not Found [IP:91.189.88.161 80]。所以我通過更新我的ubuntu機器上的/etc/apt/sources.list文件解決了這個問題。現在,這個可靠的命令起作用。謝謝! – Luminos

回答

0

答:

I'm not sure you can convince Ansible to give your more verbose error message in this case. You should try to execute apt-get update manually to see if there is any error.