4
respostas

Erro no ansible-playbook

$ ansible-playbook provisioning.yml -u vagrant -i hosts --private-key .vagrant/machines/wordpress/virtualbox/private_key

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: [172.17.177.40]

TASK [Instala o PHP5] **********************************************************
fatal: [172.17.177.40]: FAILED! => {"cache_update_time": 1510349817, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'php5'' failed: E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-readline_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php5_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5_5.5.9+dfsg-1ubuntu4.22_all.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\n", "rc": 100, "stderr": "E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-readline_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php5_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5_5.5.9+dfsg-1ubuntu4.22_all.deb  404  Not Found [IP: 91.189.91.26 80]\n\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\n", "stderr_lines": ["E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]", "", "E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]", "", "E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-readline_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]", "", "E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php5_5.5.9+dfsg-1ubuntu4.22_amd64.deb  404  Not Found [IP: 91.189.91.26 80]", "", "E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5_5.5.9+dfsg-1ubuntu4.22_all.deb  404  Not Found [IP: 91.189.91.26 80]", "", "E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n  apache2 apache2-bin apache2-data libapache2-mod-php5 libapr1 libaprutil1\n  libaprutil1-dbd-sqlite3 libaprutil1-ldap php5-cli php5-common php5-json\n  php5-readline ssl-cert\nSuggested packages:\n  apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils\n  php-pear php5-user-cache openssl-blacklist\nThe following NEW packages will be installed:\n  apache2 apache2-bin apache2-data libapache2-mod-php5 libapr1 libaprutil1\n  libaprutil1-dbd-sqlite3 libaprutil1-ldap php5 php5-cli php5-common php5-json\n  php5-readline ssl-cert\n0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 4809 kB/6133 kB of archives.\nAfter this operation, 26.0 MB of additional disk space will be used.\nErr http://archive.ubuntu.com/ubuntu/ trusty-updates/main php5-common amd64 5.5.9+dfsg-1ubuntu4.22\n  404  Not Found [IP: 91.189.88.149 80]\nErr http://security.ubuntu.com/ubuntu/ trusty-security/main php5-common amd64 5.5.9+dfsg-1ubuntu4.22\n  404  Not Found [IP: 91.189.91.26 80]\nErr http://security.ubuntu.com/ubuntu/ trusty-security/main php5-cli amd64 5.5.9+dfsg-1ubuntu4.22\n  404  Not Found [IP: 91.189.91.26 80]\nErr http://security.ubuntu.com/ubuntu/ trusty-security/main php5-readline amd64 5.5.9+dfsg-1ubuntu4.22\n  404  Not Found [IP: 91.189.91.26 80]\nErr http://security.ubuntu.com/ubuntu/ trusty-security/main libapache2-mod-php5 amd64 5.5.9+dfsg-1ubuntu4.22\n  404

deu esse erro, não sei o que significa

4 respostas

Naiara, boa tarde.

O erro está ocorrendo, porque a busca do php5 está sendo feita através dessa url:

http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.5.9+dfsg-1ubuntu4.22_amd64.deb

Como a url acima não existe, você está recebendo o erro 404, a url correta é a seguinte:

http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.5.9+dfsg-1ubuntu4.24_amd64.deb

Repare que a diferença é apenas de 4.22 para 4.24.

Oi Naiara,

Checa se o nome do pacote php5 que vc tá instalando tá certinho.

Abraços,

F

Naiara, ainda sem sucesso?

Passa a versão do ansible que você está executando e o conteúdo do arquivo: provisioning.yml

Oi gente! Desculpa a demora! Então não funcionou no mesmo dia. Quando desliguei o PC e tentei de novo, funcionou. Não entendi o que aconteceu ainda.