Vagrant up - fails at PHP 7.1 hash download

I’m not sure what information to give you with regards to roots versioning or even where to find that info, but I’m receiving this error on a vagrant up for my dev environment during provisioning of my local dev vm. A search on here came up with nothing so I am wondering if this is just a “me” issue. This has been going on for a couple of days now.

It look like the deb files are 404ing from launchpad. What should this be updated to?

TASK [php : Install PHP 7.1] ***************************************************
System info:
Ansible 2.2.0.0; Vagrant 1.8.5; Darwin
Trellis at “Allow for per-project packagist.com authentication”

'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options ::=--force-confold" --force-yes install 'php7.1-cli' 'php7.1-common' 'php7.1-curl' 'php7.1-dev' 'php7.1-fpm' 'php7.1-gd' 'php7.1-mbstring' 'php7.1-mcrypt' 'php7.1-mysql' 'php7.1-opcache' 'php7.1-xml' 'php7.1-xmlrpc' 'php7.1-zip'' failed: W: --force-yes is deprecated, use one of the options starting with --allow instead. E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/libz/ libzip/libzip4_1.1.2-1.1+deb.sury.org~xenial+1_amd64.deb Hash Sum mismatch

E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p /php-defaults/php-common_55+ubuntu16.04.1+deb.sury.org+1_all.deb Hash Sum mismatch

It’s not 404, it’s Hash Sum mismatch

A couple searches show that there could be an issue with the packages list that was downloaded: https://askubuntu.com/questions/596949/how-to-resolve-hash-sum-mismatch-solution-provided-here-does-not-work

Seems like it could also be an issue with your network: https://askubuntu.com/questions/930902/hash-sum-mismatch-etc#comment1474291_930902

@krufe Hey I have the exact same issue, did you manage to solve this?

I’ve found it eventually got past it. Just re-run vagrant provision and it then will fail on nginx. Seemed like a temporary thing, which is lucky, since I really needed to get work done. Sorry I can’t be of more help on that front.