Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant provision #1790

Closed
gecanben opened this issue May 9, 2019 · 6 comments
Closed

Vagrant provision #1790

gecanben opened this issue May 9, 2019 · 6 comments

Comments

@gecanben
Copy link

gecanben commented May 9, 2019

Expected Behavior

Current Behavior

Running vagrant up ends with following error:

default: Reading package lists...
default: Installing apt-get packages...
default: Reading package lists...
default: Building dependency tree...
default: Reading state information...
default: E
default: :
default: Unable to locate package php7.2-fpm
default: E
default: :
default: Couldn't find any package by regex 'php7.2-fpm'
default: E
default: :
default: Unable to locate package php7.2-cli
default: E
default: :
default: Couldn't find any package by regex 'php7.2-cli'
default: E
default: :
default: Unable to locate package php7.2-common
default: E
default: :
default: Couldn't find any package by regex 'php7.2-common'
default: E
default: :
default: Unable to locate package php7.2-dev
default: E
default: :
default: Couldn't find any package by regex 'php7.2-dev'
default: E: Unable to locate package php-imagick
default: E: Unable to locate package php-memcache
default: E: Unable to locate package php-memcached
default: E: Unable to locate package php-ssh2
default: E: Unable to locate package php-xdebug
default: E: Unable to locate package php7.2-bcmath
default: E: Couldn't find any package by regex 'php7.2-bcmath'
default: E: Unable to locate package php7.2-curl
default: E: Couldn't find any package by regex 'php7.2-curl'
default: E: Unable to locate package php7.2-gd
default: E: Couldn't find any package by regex 'php7.2-gd'
default: E: Unable to locate package php7.2-mbstring
default: E: Couldn't find any package by regex 'php7.2-mbstring'
default: E: Unable to locate package php7.2-mysql
default: E: Couldn't find any package by regex 'php7.2-mysql'
default: E: Unable to locate package php7.2-imap
default: E: Couldn't find any package by regex 'php7.2-imap'
default: E: Unable to locate package php7.2-json
default: E: Couldn't find any package by regex 'php7.2-json'
default: E: Unable to locate package php7.2-soap
default: E: Couldn't find any package by regex 'php7.2-soap'
default: E: Unable to locate package php7.2-xml
default: E: Couldn't find any package by regex 'php7.2-xml'
default: E: Unable to locate package php7.2-zip
default: E: Couldn't find any package by regex 'php7.2-zip'
default: Main packages check and install failed, halting provision

The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Possible Solution

Steps to Reproduce (for bugs)

  1. Installed vvv through git.
  2. Ran vagrant up

Context

Tried in different directories with same result. Uninstalled and reinstalled Vagrant and Virtualbox with same result.

Your Environment

  • VVV version: 2.6.0
  • VVV Git Branch: master
  • Vagrant version: 2.2.4
  • VM Provider name: Virtualbox
  • VM Provider version: 6.0.6r130049
  • Operating System and version: Windows 7 SP1
    platform-mingw32 windows HasWinAdminPriv vagrant-hostsupdater
@tomjn
Copy link
Member

tomjn commented May 9, 2019 via email

@tsunamilx
Copy link

I am having this issue too, do you mind tell why is this happening?

I was using vvv 2.1.0 and the provision was working, until today I updated vvv and provisioned, then this issue happened, and when I trying to get back to 2.1.0, and the error changed to "unable to locate php7.0-fpm", going crazy...

It doesn't look like a bug in your vagrant file, but more like something goes wrong in the apt repository.

@tomjn
Copy link
Member

tomjn commented May 9, 2019

VVV 2.x uses an Ubuntu 14 box, and Ondrej PHP packages which was fine for a long time.

Last week, Ubuntu 14 reached end of support, and Ondrej deleted all the PHP packages for Ubuntu 14, he only keeps packages for supported versions. That's why the provisioner can't find them and fails.

We thought we'd mirrored all the packages to a VVV apt repo, but it turns out we're missing a handful of important ones which no longer exist 😢.

We're in the process of ironing out the kinks in VVV 3 on the develop branch, which uses an Ubuntu 18 LTS box, that should keep us covered until 2024. It's a big change so I don't want to merge it just yet, but I'm expecting to do so within the next day or two

To switch to VVV3, backup your database if you haven't already ( VVV does this for you when you run vagrant halt ), switch to the develop branch, and destroy+reprovision.

@tsunamilx
Copy link

Ah sad, thanks a lot and really appreciate your work, it's great work.

@gecanben
Copy link
Author

gecanben commented May 9, 2019

Thank you very much.

@gecanben gecanben closed this as completed May 9, 2019
@lock
Copy link

lock bot commented Feb 22, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants