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

after.sh Configuration problem: 'dpkg: error processing package php7.2-fpm (--configure)' #942

Closed
engharb opened this Issue Sep 12, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@engharb

engharb commented Sep 12, 2018

Please note that the Homestead issue tracker is reserved for bug reports and enhancements. We are not always able to debug Vagrant, Provider or Operating System issues, but will do our best to help. Thank you!

Versions

  • Vagrant: Run Vagrant 2.0.1.
  • Provider: Virtualbox 5.
  • Homestead: newest.

A lot of issues can be resolved by simply updating vagrant, provider or homestead.

Note: Virtualbox users, please upgrade to ~5.2. You will show as up-to-date from the ~5.0 version when you About -> Check for Updates. You'll need to download a newer version of Virtualbox.

Host operating system

Mac OS.

Homestead.yaml

---
ip: "192.168.33.12"
memory: 2048
cpus: 1
hostname: mywebsite
name: mywebsite
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub
keys:
    - ~/.ssh/id_rsa

folders:
    - map: "~/svn/app/MyWebsite"
      to: "/home/vagrant/MyWebsite"
      type: "nfs"

sites:
    - map: api.geheimness.de
      to: "/home/vagrant/MyWebsite/public"
      type: mywebsite
      php: "7.2"

databases:
    - homestead
    - mywebsite
    - symfony

# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

Expected behavior

I want to install some libraries and features automatically, therefore I have configured the after.sh file as the following:

#!/bin/sh
export DEBIAN_FRONTEND=noninteractive

# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.

# run apt-get update first, without it I was getting errors not finding the extensions
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/nginx
sudo DEBIAN_FRONTEND=noninteractive apt-get --assume-yes update

# load any extensions you like here
sudo DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install libmagickwand-dev
sudo DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install imagemagick
sudo DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install php-dev
sudo DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install php-imagick

# echo extension=imagick.so >> /etc/php/7.2/cli/php.ini
# echo extension=imagick.so >> /etc/php/7.2/fpm/php.ini
sudo apt-get install php7.2-fpm
sudo DEBIAN_FRONTEND=noninteractive apt-get --assume-yes install php7.2-gmp

Actual behavior

The problem is when I run i.e vagrant provision I got the following error:

mywebsite: Use 'sudo apt autoremove' to remove it.
    mywebsite: 0 upgraded, 0 newly installed, 0 to remove and 341 not upgraded.
    mywebsite: 1 not fully installed or removed.
    mywebsite: After this operation, 0 B of additional disk space will be used.
    mywebsite: Do you want to continue?
    mywebsite:  [Y/n] 
    mywebsite: Abort.
    mywebsite: Reading package lists...
    mywebsite: Building dependency tree...
    mywebsite: Reading state information...
    mywebsite: php7.2-gmp is already the newest version (7.2.9-1+ubuntu16.04.1+deb.sury.org+1).
    mywebsite: The following package was automatically installed and is no longer required:
    mywebsite:   libsodium18
    mywebsite: Use 'sudo apt autoremove' to remove it.
    mywebsite: 0 upgraded, 0 newly installed, 0 to remove and 341 not upgraded.
    mywebsite: 1 not fully installed or removed.
    mywebsite: After this operation, 0 B of additional disk space will be used.
    mywebsite: Setting up php7.2-fpm (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    mywebsite: Configuration file '/etc/php/7.2/fpm/pool.d/www.conf'
    mywebsite:  ==> Modified (by you or by a script) since installation.
    mywebsite:  ==> Package distributor has shipped an updated version.
    mywebsite:    What would you like to do about it ?  Your options are:
    mywebsite:     Y or I  : install the package maintainer's version
    mywebsite:     N or O  : keep your currently-installed version
    mywebsite:       D     : show the differences between the versions
    mywebsite:       Z     : start a shell to examine the situation
    mywebsite:  The default action is to keep your current version.
    mywebsite: *** www.conf (Y/I/N/O/D/Z) [default=N] ? 
    mywebsite: dpkg: error processing package php7.2-fpm (--configure):
    mywebsite:  end of file on stdin at conffile prompt
    mywebsite: Errors were encountered while processing:
    mywebsite: 
    mywebsite:  php7.2-fpm
    mywebsite: E
    mywebsite: : 
    mywebsite: Sub-process /usr/bin/dpkg returned an error code (1)
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.

How can I fix that by modifying the after.sh configuration?

Steps to reproduce

  1. vagrant provision
@svpernova09

This comment has been minimized.

Show comment
Hide comment
@svpernova09

svpernova09 Sep 12, 2018

Member

You don't need to add the 2 PPAs you're adding, they're already in the box. You also don't need to install php7.2-fpm since it's already installed.

Please follow the issue template instructions:

Provide a link to a GitHub Gist containing the complete output of vagrant destroy && vagrant up.

vagrant provision does not reset the current box state. There's no way we can debug from your current state, we have to work from a known working box state which is always going to be a clean vagrant up.

Member

svpernova09 commented Sep 12, 2018

You don't need to add the 2 PPAs you're adding, they're already in the box. You also don't need to install php7.2-fpm since it's already installed.

Please follow the issue template instructions:

Provide a link to a GitHub Gist containing the complete output of vagrant destroy && vagrant up.

vagrant provision does not reset the current box state. There's no way we can debug from your current state, we have to work from a known working box state which is always going to be a clean vagrant up.

@engharb

This comment has been minimized.

Show comment
Hide comment
@engharb

engharb Sep 13, 2018

@svpernova09

vagrant-up

geheimnesswebsite: Reading package lists...
    geheimnesswebsite: Building dependency tree...
    geheimnesswebsite: Reading state information...
    geheimnesswebsite: The following additional packages will be installed:
    geheimnesswebsite:   imagemagick-6.q16
    geheimnesswebsite: Suggested packages:
    geheimnesswebsite:   imagemagick-doc autotrace cups-bsd | lpr | lprng enscript ffmpeg gimp
    geheimnesswebsite:   gnuplot grads graphviz hp2xx html2ps libwmf-bin mplayer povray radiance
    geheimnesswebsite:   sane-utils texlive-base-bin transfig ufraw-batch
    geheimnesswebsite: The following packages will be upgraded:
    geheimnesswebsite:   imagemagick imagemagick-6.q16
    geheimnesswebsite: 2 upgraded, 0 newly installed, 0 to remove and 360 not upgraded.
    geheimnesswebsite: Need to get 432 kB of archives.
    geheimnesswebsite: After this operation, 2,048 B of additional disk space will be used.
    geheimnesswebsite: Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 imagemagick amd64 8:6.8.9.9-7ubuntu5.12 [44.8 kB]
    geheimnesswebsite: Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 imagemagick-6.q16 amd64 8:6.8.9.9-7ubuntu5.12 [387 kB]
    geheimnesswebsite: Fetched 432 kB in 0s (1,692 kB/s)
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: (Reading database ... 5%
    geheimnesswebsite: (Reading database ... 10%
    geheimnesswebsite: (Reading database ... 15%
    geheimnesswebsite: (Reading database ... 20%
    geheimnesswebsite: (Reading database ... 25%
    geheimnesswebsite: (Reading database ... 30%
    geheimnesswebsite: (Reading database ... 35%
    geheimnesswebsite: (Reading database ... 40%
    geheimnesswebsite: (Reading database ... 45%
    geheimnesswebsite: (Reading database ... 50%
    geheimnesswebsite: (Reading database ... 55%
    geheimnesswebsite: (Reading database ... 60%
    geheimnesswebsite: (Reading database ... 65%
    geheimnesswebsite: (Reading database ... 70%
    geheimnesswebsite: (Reading database ... 75%
    geheimnesswebsite: (Reading database ... 80%
    geheimnesswebsite: (Reading database ... 85%
    geheimnesswebsite: (Reading database ... 90%
    geheimnesswebsite: (Reading database ... 95%
    geheimnesswebsite: (Reading database ... 100%
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: 141132 files and directories currently installed.)
    geheimnesswebsite: Preparing to unpack .../imagemagick_8%3a6.8.9.9-7ubuntu5.12_amd64.deb ...
    geheimnesswebsite: Unpacking imagemagick (8:6.8.9.9-7ubuntu5.12) over (8:6.8.9.9-7ubuntu5.9) ...
    geheimnesswebsite: Preparing to unpack .../imagemagick-6.q16_8%3a6.8.9.9-7ubuntu5.12_amd64.deb ...
    geheimnesswebsite: Unpacking imagemagick-6.q16 (8:6.8.9.9-7ubuntu5.12) over (8:6.8.9.9-7ubuntu5.9) ...
    geheimnesswebsite: Processing triggers for mime-support (3.59ubuntu1) ...
    geheimnesswebsite: Processing triggers for man-db (2.7.5-1) ...
    geheimnesswebsite: Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
    geheimnesswebsite: Setting up imagemagick-6.q16 (8:6.8.9.9-7ubuntu5.12) ...
    geheimnesswebsite: Setting up imagemagick (8:6.8.9.9-7ubuntu5.12) ...
    geheimnesswebsite: Reading package lists...
    geheimnesswebsite: Building dependency tree...
    geheimnesswebsite: Reading state information...
    geheimnesswebsite: The following NEW packages will be installed:
    geheimnesswebsite:   php-dev
    geheimnesswebsite: 0 upgraded, 1 newly installed, 0 to remove and 360 not upgraded.
    geheimnesswebsite: Need to get 5,760 B of archives.
    geheimnesswebsite: After this operation, 12.3 kB of additional disk space will be used.
    geheimnesswebsite: Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-dev all 1:7.2+62+ubuntu16.04.1+deb.sury.org+3 [5,760 B]
    geheimnesswebsite: Fetched 5,760 B in 0s (77.5 kB/s)
    geheimnesswebsite: Selecting previously unselected package php-dev.
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: (Reading database ... 5%
    geheimnesswebsite: (Reading database ... 10%
    geheimnesswebsite: (Reading database ... 15%
    geheimnesswebsite: (Reading database ... 20%
    geheimnesswebsite: (Reading database ... 25%
    geheimnesswebsite: (Reading database ... 30%
    geheimnesswebsite: (Reading database ... 35%
    geheimnesswebsite: (Reading database ... 40%
    geheimnesswebsite: (Reading database ... 45%
    geheimnesswebsite: (Reading database ... 50%
    geheimnesswebsite: (Reading database ... 55%
    geheimnesswebsite: (Reading database ... 60%
    geheimnesswebsite: (Reading database ... 65%
    geheimnesswebsite: (Reading database ... 70%
    geheimnesswebsite: (Reading database ... 75%
    geheimnesswebsite: (Reading database ... 80%
    geheimnesswebsite: (Reading database ... 85%
    geheimnesswebsite: (Reading database ... 90%
    geheimnesswebsite: (Reading database ... 95%
    geheimnesswebsite: (Reading database ... 100%
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: 141132 files and directories currently installed.)
    geheimnesswebsite: Preparing to unpack .../php-dev_1%3a7.2+62+ubuntu16.04.1+deb.sury.org+3_all.deb ...
    geheimnesswebsite: Unpacking php-dev (1:7.2+62+ubuntu16.04.1+deb.sury.org+3) ...
    geheimnesswebsite: Setting up php-dev (1:7.2+62+ubuntu16.04.1+deb.sury.org+3) ...
    geheimnesswebsite: Reading package lists...
    geheimnesswebsite: Building dependency tree...
    geheimnesswebsite: Reading state information...
    geheimnesswebsite: The following additional packages will be installed:
    geheimnesswebsite:   ttf-dejavu-core
    geheimnesswebsite: The following NEW packages will be installed:
    geheimnesswebsite:   php-imagick ttf-dejavu-core
    geheimnesswebsite: 0 upgraded, 2 newly installed, 0 to remove and 360 not upgraded.
    geheimnesswebsite: Need to get 195 kB of archives.
    geheimnesswebsite: After this operation, 1,824 kB of additional disk space will be used.
    geheimnesswebsite: Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 ttf-dejavu-core all 2.35-1 [3,038 B]
    geheimnesswebsite: Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-imagick amd64 3.4.3-3+ubuntu16.04.1+deb.sury.org+1 [192 kB]
    geheimnesswebsite: Fetched 195 kB in 0s (721 kB/s)
    geheimnesswebsite: Selecting previously unselected package php-imagick.
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: (Reading database ... 5%
    geheimnesswebsite: (Reading database ... 10%
    geheimnesswebsite: (Reading database ... 15%
    geheimnesswebsite: (Reading database ... 20%
    geheimnesswebsite: (Reading database ... 25%
    geheimnesswebsite: (Reading database ... 30%
    geheimnesswebsite: (Reading database ... 35%
    geheimnesswebsite: (Reading database ... 40%
    geheimnesswebsite: (Reading database ... 45%
    geheimnesswebsite: (Reading database ... 50%
    geheimnesswebsite: (Reading database ... 55%
    geheimnesswebsite: (Reading database ... 60%
    geheimnesswebsite: (Reading database ... 65%
    geheimnesswebsite: (Reading database ... 70%
    geheimnesswebsite: (Reading database ... 75%
    geheimnesswebsite: (Reading database ... 80%
    geheimnesswebsite: (Reading database ... 85%
    geheimnesswebsite: (Reading database ... 90%
    geheimnesswebsite: (Reading database ... 95%
    geheimnesswebsite: (Reading database ... 100%
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: 141135 files and directories currently installed.)
    geheimnesswebsite: Preparing to unpack .../php-imagick_3.4.3-3+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php-imagick (3.4.3-3+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Selecting previously unselected package ttf-dejavu-core.
    geheimnesswebsite: Preparing to unpack .../ttf-dejavu-core_2.35-1_all.deb ...
    geheimnesswebsite: Unpacking ttf-dejavu-core (2.35-1) ...
    geheimnesswebsite: Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ...
    geheimnesswebsite: Setting up php-imagick (3.4.3-3+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up ttf-dejavu-core (2.35-1) ...
    geheimnesswebsite: Reading package lists...
    geheimnesswebsite: Building dependency tree...
    geheimnesswebsite: Reading state information...
    geheimnesswebsite: The following package was automatically installed and is no longer required:
    geheimnesswebsite:   libsodium18
    geheimnesswebsite: Use 'sudo apt autoremove' to remove it.
    geheimnesswebsite: The following additional packages will be installed:
    geheimnesswebsite:   libsodium23 libzip5 php7.2-bcmath php7.2-cli php7.2-common php7.2-curl
    geheimnesswebsite:   php7.2-dev php7.2-fpm php7.2-gd php7.2-imap php7.2-intl php7.2-json
    geheimnesswebsite:   php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-pgsql php7.2-readline
    geheimnesswebsite:   php7.2-soap php7.2-sqlite3 php7.2-xml php7.2-zip
    geheimnesswebsite: The following NEW packages will be installed:
    geheimnesswebsite:   libsodium23 libzip5 php7.2-gmp
    geheimnesswebsite: The following packages will be upgraded:
    geheimnesswebsite:   php7.2-bcmath php7.2-cli php7.2-common php7.2-curl php7.2-dev php7.2-fpm
    geheimnesswebsite:   php7.2-gd php7.2-imap php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql
    geheimnesswebsite:   php7.2-opcache php7.2-pgsql php7.2-readline php7.2-soap php7.2-sqlite3
    geheimnesswebsite:   php7.2-xml php7.2-zip
    geheimnesswebsite: 19 upgraded, 3 newly installed, 0 to remove and 341 not upgraded.
    geheimnesswebsite: Need to get 5,780 kB of archives.
    geheimnesswebsite: After this operation, 1,200 kB disk space will be freed.
    geheimnesswebsite: Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libsodium23 amd64 1.0.16-2+ubuntu16.04.1+deb.sury.org+3 [143 kB]
    geheimnesswebsite: Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libzip5 amd64 1.3.2-1+ubuntu16.04.1+deb.sury.org+1 [53.1 kB]
    geheimnesswebsite: Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-mysql amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [118 kB]
    geheimnesswebsite: Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-opcache amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [161 kB]
    geheimnesswebsite: Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-intl amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [121 kB]
    geheimnesswebsite: Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-json amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [18.4 kB]
    geheimnesswebsite: Get:7 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-readline amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [12.6 kB]
    geheimnesswebsite: Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-cli amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [1,385 kB]
    geheimnesswebsite: Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-soap amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [111 kB]
    geheimnesswebsite: Get:10 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-mbstring amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [479 kB]
    geheimnesswebsite: Get:11 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-curl amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [28.3 kB]
    geheimnesswebsite: Get:12 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-imap amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [28.1 kB]
    geheimnesswebsite: Get:13 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-sqlite3 amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [24.3 kB]
    geheimnesswebsite: Get:14 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-zip amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [20.3 kB]
    geheimnesswebsite: Get:15 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-pgsql amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [54.7 kB]
    geheimnesswebsite: Get:16 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-fpm amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [1,391 kB]
    geheimnesswebsite: Get:17 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-xml amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [105 kB]
    geheimnesswebsite: Get:18 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-dev amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [557 kB]
    geheimnesswebsite: Get:19 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-gd amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [26.6 kB]
    geheimnesswebsite: Get:20 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-bcmath amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [15.1 kB]
    geheimnesswebsite: Get:21 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-common amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [907 kB]
    geheimnesswebsite: Get:22 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-gmp amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [19.6 kB]
    geheimnesswebsite: Fetched 5,780 kB in 5s (1,137 kB/s)
    geheimnesswebsite: Selecting previously unselected package libsodium23:amd64.
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: (Reading database ... 5%
    geheimnesswebsite: (Reading database ... 10%
    geheimnesswebsite: (Reading database ... 15%
    geheimnesswebsite: (Reading database ... 20%
    geheimnesswebsite: (Reading database ... 25%
    geheimnesswebsite: (Reading database ... 30%
    geheimnesswebsite: (Reading database ... 35%
    geheimnesswebsite: (Reading database ... 40%
    geheimnesswebsite: (Reading database ... 45%
    geheimnesswebsite: (Reading database ... 50%
    geheimnesswebsite: (Reading database ... 55%
    geheimnesswebsite: (Reading database ... 60%
    geheimnesswebsite: (Reading database ... 65%
    geheimnesswebsite: (Reading database ... 70%
    geheimnesswebsite: (Reading database ... 75%
    geheimnesswebsite: (Reading database ... 80%
    geheimnesswebsite: (Reading database ... 85%
    geheimnesswebsite: (Reading database ... 90%
    geheimnesswebsite: (Reading database ... 95%
    geheimnesswebsite: (Reading database ... 100%
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: 141164 files and directories currently installed.)
    geheimnesswebsite: Preparing to unpack .../libsodium23_1.0.16-2+ubuntu16.04.1+deb.sury.org+3_amd64.deb ...
    geheimnesswebsite: Unpacking libsodium23:amd64 (1.0.16-2+ubuntu16.04.1+deb.sury.org+3) ...
    geheimnesswebsite: Selecting previously unselected package libzip5:amd64.
    geheimnesswebsite: Preparing to unpack .../libzip5_1.3.2-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking libzip5:amd64 (1.3.2-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-mysql_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-mysql (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-opcache_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-opcache (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-intl_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-intl (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-json_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-json (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-readline_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-readline (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-cli_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-cli (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-soap_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-soap (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-mbstring_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-mbstring (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-curl_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-curl (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-imap_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-imap (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-sqlite3_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-sqlite3 (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-zip_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-zip (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-pgsql_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-pgsql (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-fpm_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-fpm (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-xml_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-xml (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-dev_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-dev (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-gd_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-gd (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-bcmath_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-bcmath (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-common_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-common (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Selecting previously unselected package php7.2-gmp.
    geheimnesswebsite: Preparing to unpack .../php7.2-gmp_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-gmp (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Processing triggers for libc-bin (2.23-0ubuntu9) ...
    geheimnesswebsite: Processing triggers for man-db (2.7.5-1) ...
    geheimnesswebsite: Processing triggers for ureadahead (0.100.0-19) ...
    geheimnesswebsite: Processing triggers for systemd (229-4ubuntu21) ...
    geheimnesswebsite: Setting up libsodium23:amd64 (1.0.16-2+ubuntu16.04.1+deb.sury.org+3) ...
    geheimnesswebsite: Setting up libzip5:amd64 (1.3.2-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-common (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-mysql (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-opcache (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-intl (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-json (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-readline (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-cli (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-soap (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-mbstring (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-curl (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-imap (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-sqlite3 (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-zip (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-pgsql (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-fpm (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Configuration file '/etc/php/7.2/fpm/pool.d/www.conf'
    geheimnesswebsite:  ==> Modified (by you or by a script) since installation.
    geheimnesswebsite:  ==> Package distributor has shipped an updated version.
    geheimnesswebsite:    What would you like to do about it ?  Your options are:
    geheimnesswebsite:     Y or I  : install the package maintainer's version
    geheimnesswebsite:     N or O  : keep your currently-installed version
    geheimnesswebsite:       D     : show the differences between the versions
    geheimnesswebsite:       Z     : start a shell to examine the situation
    geheimnesswebsite: 
    geheimnesswebsite:  The default action is to keep your current version.
    geheimnesswebsite: *** www.conf (Y/I/N/O/D/Z) [default=N] ? 
    geheimnesswebsite: Configuration file '/etc/php/7.2/fpm/pool.d/www.conf'
    geheimnesswebsite:  ==> Modified (by you or by a script) since installation.
    geheimnesswebsite:  ==> Package distributor has shipped an updated version.
    geheimnesswebsite:    What would you like to do about it ?  Your options are:
    geheimnesswebsite:     Y or I  : install the package maintainer's version
    geheimnesswebsite:     N or O  : keep your currently-installed version
    geheimnesswebsite:       D     : show the differences between the versions
    geheimnesswebsite:       Z     : start a shell to examine the situation
    geheimnesswebsite:  The default action is to keep your current version.
    geheimnesswebsite: *** www.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package php7.2-fpm (--configure):
    geheimnesswebsite:  end of file on stdin at conffile prompt
    geheimnesswebsite: Setting up php7.2-xml (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-dev (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-gd (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-bcmath (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-gmp (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Creating config file /etc/php/7.2/mods-available/gmp.ini with new version
    geheimnesswebsite: Processing triggers for libc-bin (2.23-0ubuntu9) ...
    geheimnesswebsite: Errors were encountered while processing:
    geheimnesswebsite: 
    geheimnesswebsite:  php7.2-fpm
    geheimnesswebsite: E
    geheimnesswebsite: : 
    geheimnesswebsite: Sub-process /usr/bin/dpkg returned an error code (1)
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.

vagrant destroy

geheimnesswebsite: Are you sure you want to destroy the 'geheimnesswebsite' VM? [y/N] y
==> geheimnesswebsite: Forcing shutdown of VM...
==> geheimnesswebsite: Destroying VM and associated drives...
==> geheimnesswebsite: Pruning invalid NFS exports. Administrator privileges will be required...:
==> geheimnesswebsite: [vagrant-hostsupdater] Removing hosts

And when I start the VM and install php-fpm I got another problem from symfony :

/var/log/dev.log" could not be opened: failed to open stream: Permission denied

one thing more the www.conf contains the www-data user where is not like that in nginx.conf ??

engharb commented Sep 13, 2018

@svpernova09

vagrant-up

geheimnesswebsite: Reading package lists...
    geheimnesswebsite: Building dependency tree...
    geheimnesswebsite: Reading state information...
    geheimnesswebsite: The following additional packages will be installed:
    geheimnesswebsite:   imagemagick-6.q16
    geheimnesswebsite: Suggested packages:
    geheimnesswebsite:   imagemagick-doc autotrace cups-bsd | lpr | lprng enscript ffmpeg gimp
    geheimnesswebsite:   gnuplot grads graphviz hp2xx html2ps libwmf-bin mplayer povray radiance
    geheimnesswebsite:   sane-utils texlive-base-bin transfig ufraw-batch
    geheimnesswebsite: The following packages will be upgraded:
    geheimnesswebsite:   imagemagick imagemagick-6.q16
    geheimnesswebsite: 2 upgraded, 0 newly installed, 0 to remove and 360 not upgraded.
    geheimnesswebsite: Need to get 432 kB of archives.
    geheimnesswebsite: After this operation, 2,048 B of additional disk space will be used.
    geheimnesswebsite: Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 imagemagick amd64 8:6.8.9.9-7ubuntu5.12 [44.8 kB]
    geheimnesswebsite: Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 imagemagick-6.q16 amd64 8:6.8.9.9-7ubuntu5.12 [387 kB]
    geheimnesswebsite: Fetched 432 kB in 0s (1,692 kB/s)
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: (Reading database ... 5%
    geheimnesswebsite: (Reading database ... 10%
    geheimnesswebsite: (Reading database ... 15%
    geheimnesswebsite: (Reading database ... 20%
    geheimnesswebsite: (Reading database ... 25%
    geheimnesswebsite: (Reading database ... 30%
    geheimnesswebsite: (Reading database ... 35%
    geheimnesswebsite: (Reading database ... 40%
    geheimnesswebsite: (Reading database ... 45%
    geheimnesswebsite: (Reading database ... 50%
    geheimnesswebsite: (Reading database ... 55%
    geheimnesswebsite: (Reading database ... 60%
    geheimnesswebsite: (Reading database ... 65%
    geheimnesswebsite: (Reading database ... 70%
    geheimnesswebsite: (Reading database ... 75%
    geheimnesswebsite: (Reading database ... 80%
    geheimnesswebsite: (Reading database ... 85%
    geheimnesswebsite: (Reading database ... 90%
    geheimnesswebsite: (Reading database ... 95%
    geheimnesswebsite: (Reading database ... 100%
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: 141132 files and directories currently installed.)
    geheimnesswebsite: Preparing to unpack .../imagemagick_8%3a6.8.9.9-7ubuntu5.12_amd64.deb ...
    geheimnesswebsite: Unpacking imagemagick (8:6.8.9.9-7ubuntu5.12) over (8:6.8.9.9-7ubuntu5.9) ...
    geheimnesswebsite: Preparing to unpack .../imagemagick-6.q16_8%3a6.8.9.9-7ubuntu5.12_amd64.deb ...
    geheimnesswebsite: Unpacking imagemagick-6.q16 (8:6.8.9.9-7ubuntu5.12) over (8:6.8.9.9-7ubuntu5.9) ...
    geheimnesswebsite: Processing triggers for mime-support (3.59ubuntu1) ...
    geheimnesswebsite: Processing triggers for man-db (2.7.5-1) ...
    geheimnesswebsite: Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
    geheimnesswebsite: Setting up imagemagick-6.q16 (8:6.8.9.9-7ubuntu5.12) ...
    geheimnesswebsite: Setting up imagemagick (8:6.8.9.9-7ubuntu5.12) ...
    geheimnesswebsite: Reading package lists...
    geheimnesswebsite: Building dependency tree...
    geheimnesswebsite: Reading state information...
    geheimnesswebsite: The following NEW packages will be installed:
    geheimnesswebsite:   php-dev
    geheimnesswebsite: 0 upgraded, 1 newly installed, 0 to remove and 360 not upgraded.
    geheimnesswebsite: Need to get 5,760 B of archives.
    geheimnesswebsite: After this operation, 12.3 kB of additional disk space will be used.
    geheimnesswebsite: Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-dev all 1:7.2+62+ubuntu16.04.1+deb.sury.org+3 [5,760 B]
    geheimnesswebsite: Fetched 5,760 B in 0s (77.5 kB/s)
    geheimnesswebsite: Selecting previously unselected package php-dev.
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: (Reading database ... 5%
    geheimnesswebsite: (Reading database ... 10%
    geheimnesswebsite: (Reading database ... 15%
    geheimnesswebsite: (Reading database ... 20%
    geheimnesswebsite: (Reading database ... 25%
    geheimnesswebsite: (Reading database ... 30%
    geheimnesswebsite: (Reading database ... 35%
    geheimnesswebsite: (Reading database ... 40%
    geheimnesswebsite: (Reading database ... 45%
    geheimnesswebsite: (Reading database ... 50%
    geheimnesswebsite: (Reading database ... 55%
    geheimnesswebsite: (Reading database ... 60%
    geheimnesswebsite: (Reading database ... 65%
    geheimnesswebsite: (Reading database ... 70%
    geheimnesswebsite: (Reading database ... 75%
    geheimnesswebsite: (Reading database ... 80%
    geheimnesswebsite: (Reading database ... 85%
    geheimnesswebsite: (Reading database ... 90%
    geheimnesswebsite: (Reading database ... 95%
    geheimnesswebsite: (Reading database ... 100%
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: 141132 files and directories currently installed.)
    geheimnesswebsite: Preparing to unpack .../php-dev_1%3a7.2+62+ubuntu16.04.1+deb.sury.org+3_all.deb ...
    geheimnesswebsite: Unpacking php-dev (1:7.2+62+ubuntu16.04.1+deb.sury.org+3) ...
    geheimnesswebsite: Setting up php-dev (1:7.2+62+ubuntu16.04.1+deb.sury.org+3) ...
    geheimnesswebsite: Reading package lists...
    geheimnesswebsite: Building dependency tree...
    geheimnesswebsite: Reading state information...
    geheimnesswebsite: The following additional packages will be installed:
    geheimnesswebsite:   ttf-dejavu-core
    geheimnesswebsite: The following NEW packages will be installed:
    geheimnesswebsite:   php-imagick ttf-dejavu-core
    geheimnesswebsite: 0 upgraded, 2 newly installed, 0 to remove and 360 not upgraded.
    geheimnesswebsite: Need to get 195 kB of archives.
    geheimnesswebsite: After this operation, 1,824 kB of additional disk space will be used.
    geheimnesswebsite: Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 ttf-dejavu-core all 2.35-1 [3,038 B]
    geheimnesswebsite: Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-imagick amd64 3.4.3-3+ubuntu16.04.1+deb.sury.org+1 [192 kB]
    geheimnesswebsite: Fetched 195 kB in 0s (721 kB/s)
    geheimnesswebsite: Selecting previously unselected package php-imagick.
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: (Reading database ... 5%
    geheimnesswebsite: (Reading database ... 10%
    geheimnesswebsite: (Reading database ... 15%
    geheimnesswebsite: (Reading database ... 20%
    geheimnesswebsite: (Reading database ... 25%
    geheimnesswebsite: (Reading database ... 30%
    geheimnesswebsite: (Reading database ... 35%
    geheimnesswebsite: (Reading database ... 40%
    geheimnesswebsite: (Reading database ... 45%
    geheimnesswebsite: (Reading database ... 50%
    geheimnesswebsite: (Reading database ... 55%
    geheimnesswebsite: (Reading database ... 60%
    geheimnesswebsite: (Reading database ... 65%
    geheimnesswebsite: (Reading database ... 70%
    geheimnesswebsite: (Reading database ... 75%
    geheimnesswebsite: (Reading database ... 80%
    geheimnesswebsite: (Reading database ... 85%
    geheimnesswebsite: (Reading database ... 90%
    geheimnesswebsite: (Reading database ... 95%
    geheimnesswebsite: (Reading database ... 100%
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: 141135 files and directories currently installed.)
    geheimnesswebsite: Preparing to unpack .../php-imagick_3.4.3-3+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php-imagick (3.4.3-3+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Selecting previously unselected package ttf-dejavu-core.
    geheimnesswebsite: Preparing to unpack .../ttf-dejavu-core_2.35-1_all.deb ...
    geheimnesswebsite: Unpacking ttf-dejavu-core (2.35-1) ...
    geheimnesswebsite: Processing triggers for fontconfig (2.11.94-0ubuntu1.1) ...
    geheimnesswebsite: Setting up php-imagick (3.4.3-3+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up ttf-dejavu-core (2.35-1) ...
    geheimnesswebsite: Reading package lists...
    geheimnesswebsite: Building dependency tree...
    geheimnesswebsite: Reading state information...
    geheimnesswebsite: The following package was automatically installed and is no longer required:
    geheimnesswebsite:   libsodium18
    geheimnesswebsite: Use 'sudo apt autoremove' to remove it.
    geheimnesswebsite: The following additional packages will be installed:
    geheimnesswebsite:   libsodium23 libzip5 php7.2-bcmath php7.2-cli php7.2-common php7.2-curl
    geheimnesswebsite:   php7.2-dev php7.2-fpm php7.2-gd php7.2-imap php7.2-intl php7.2-json
    geheimnesswebsite:   php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-pgsql php7.2-readline
    geheimnesswebsite:   php7.2-soap php7.2-sqlite3 php7.2-xml php7.2-zip
    geheimnesswebsite: The following NEW packages will be installed:
    geheimnesswebsite:   libsodium23 libzip5 php7.2-gmp
    geheimnesswebsite: The following packages will be upgraded:
    geheimnesswebsite:   php7.2-bcmath php7.2-cli php7.2-common php7.2-curl php7.2-dev php7.2-fpm
    geheimnesswebsite:   php7.2-gd php7.2-imap php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql
    geheimnesswebsite:   php7.2-opcache php7.2-pgsql php7.2-readline php7.2-soap php7.2-sqlite3
    geheimnesswebsite:   php7.2-xml php7.2-zip
    geheimnesswebsite: 19 upgraded, 3 newly installed, 0 to remove and 341 not upgraded.
    geheimnesswebsite: Need to get 5,780 kB of archives.
    geheimnesswebsite: After this operation, 1,200 kB disk space will be freed.
    geheimnesswebsite: Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libsodium23 amd64 1.0.16-2+ubuntu16.04.1+deb.sury.org+3 [143 kB]
    geheimnesswebsite: Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libzip5 amd64 1.3.2-1+ubuntu16.04.1+deb.sury.org+1 [53.1 kB]
    geheimnesswebsite: Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-mysql amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [118 kB]
    geheimnesswebsite: Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-opcache amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [161 kB]
    geheimnesswebsite: Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-intl amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [121 kB]
    geheimnesswebsite: Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-json amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [18.4 kB]
    geheimnesswebsite: Get:7 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-readline amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [12.6 kB]
    geheimnesswebsite: Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-cli amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [1,385 kB]
    geheimnesswebsite: Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-soap amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [111 kB]
    geheimnesswebsite: Get:10 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-mbstring amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [479 kB]
    geheimnesswebsite: Get:11 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-curl amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [28.3 kB]
    geheimnesswebsite: Get:12 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-imap amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [28.1 kB]
    geheimnesswebsite: Get:13 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-sqlite3 amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [24.3 kB]
    geheimnesswebsite: Get:14 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-zip amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [20.3 kB]
    geheimnesswebsite: Get:15 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-pgsql amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [54.7 kB]
    geheimnesswebsite: Get:16 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-fpm amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [1,391 kB]
    geheimnesswebsite: Get:17 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-xml amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [105 kB]
    geheimnesswebsite: Get:18 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-dev amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [557 kB]
    geheimnesswebsite: Get:19 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-gd amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [26.6 kB]
    geheimnesswebsite: Get:20 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-bcmath amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [15.1 kB]
    geheimnesswebsite: Get:21 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-common amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [907 kB]
    geheimnesswebsite: Get:22 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.2-gmp amd64 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 [19.6 kB]
    geheimnesswebsite: Fetched 5,780 kB in 5s (1,137 kB/s)
    geheimnesswebsite: Selecting previously unselected package libsodium23:amd64.
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: (Reading database ... 5%
    geheimnesswebsite: (Reading database ... 10%
    geheimnesswebsite: (Reading database ... 15%
    geheimnesswebsite: (Reading database ... 20%
    geheimnesswebsite: (Reading database ... 25%
    geheimnesswebsite: (Reading database ... 30%
    geheimnesswebsite: (Reading database ... 35%
    geheimnesswebsite: (Reading database ... 40%
    geheimnesswebsite: (Reading database ... 45%
    geheimnesswebsite: (Reading database ... 50%
    geheimnesswebsite: (Reading database ... 55%
    geheimnesswebsite: (Reading database ... 60%
    geheimnesswebsite: (Reading database ... 65%
    geheimnesswebsite: (Reading database ... 70%
    geheimnesswebsite: (Reading database ... 75%
    geheimnesswebsite: (Reading database ... 80%
    geheimnesswebsite: (Reading database ... 85%
    geheimnesswebsite: (Reading database ... 90%
    geheimnesswebsite: (Reading database ... 95%
    geheimnesswebsite: (Reading database ... 100%
    geheimnesswebsite: (Reading database ... 
    geheimnesswebsite: 141164 files and directories currently installed.)
    geheimnesswebsite: Preparing to unpack .../libsodium23_1.0.16-2+ubuntu16.04.1+deb.sury.org+3_amd64.deb ...
    geheimnesswebsite: Unpacking libsodium23:amd64 (1.0.16-2+ubuntu16.04.1+deb.sury.org+3) ...
    geheimnesswebsite: Selecting previously unselected package libzip5:amd64.
    geheimnesswebsite: Preparing to unpack .../libzip5_1.3.2-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking libzip5:amd64 (1.3.2-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-mysql_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-mysql (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-opcache_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-opcache (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-intl_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-intl (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-json_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-json (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-readline_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-readline (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-cli_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-cli (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-soap_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-soap (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-mbstring_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-mbstring (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-curl_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-curl (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-imap_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-imap (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-sqlite3_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-sqlite3 (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-zip_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-zip (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-pgsql_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-pgsql (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-fpm_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-fpm (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-xml_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-xml (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-dev_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-dev (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-gd_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-gd (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-bcmath_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-bcmath (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Preparing to unpack .../php7.2-common_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-common (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) over (7.2.0-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Selecting previously unselected package php7.2-gmp.
    geheimnesswebsite: Preparing to unpack .../php7.2-gmp_7.2.9-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
    geheimnesswebsite: Unpacking php7.2-gmp (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Processing triggers for libc-bin (2.23-0ubuntu9) ...
    geheimnesswebsite: Processing triggers for man-db (2.7.5-1) ...
    geheimnesswebsite: Processing triggers for ureadahead (0.100.0-19) ...
    geheimnesswebsite: Processing triggers for systemd (229-4ubuntu21) ...
    geheimnesswebsite: Setting up libsodium23:amd64 (1.0.16-2+ubuntu16.04.1+deb.sury.org+3) ...
    geheimnesswebsite: Setting up libzip5:amd64 (1.3.2-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-common (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-mysql (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-opcache (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-intl (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-json (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-readline (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-cli (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-soap (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-mbstring (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-curl (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-imap (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-sqlite3 (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-zip (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-pgsql (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-fpm (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Configuration file '/etc/php/7.2/fpm/pool.d/www.conf'
    geheimnesswebsite:  ==> Modified (by you or by a script) since installation.
    geheimnesswebsite:  ==> Package distributor has shipped an updated version.
    geheimnesswebsite:    What would you like to do about it ?  Your options are:
    geheimnesswebsite:     Y or I  : install the package maintainer's version
    geheimnesswebsite:     N or O  : keep your currently-installed version
    geheimnesswebsite:       D     : show the differences between the versions
    geheimnesswebsite:       Z     : start a shell to examine the situation
    geheimnesswebsite: 
    geheimnesswebsite:  The default action is to keep your current version.
    geheimnesswebsite: *** www.conf (Y/I/N/O/D/Z) [default=N] ? 
    geheimnesswebsite: Configuration file '/etc/php/7.2/fpm/pool.d/www.conf'
    geheimnesswebsite:  ==> Modified (by you or by a script) since installation.
    geheimnesswebsite:  ==> Package distributor has shipped an updated version.
    geheimnesswebsite:    What would you like to do about it ?  Your options are:
    geheimnesswebsite:     Y or I  : install the package maintainer's version
    geheimnesswebsite:     N or O  : keep your currently-installed version
    geheimnesswebsite:       D     : show the differences between the versions
    geheimnesswebsite:       Z     : start a shell to examine the situation
    geheimnesswebsite:  The default action is to keep your current version.
    geheimnesswebsite: *** www.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package php7.2-fpm (--configure):
    geheimnesswebsite:  end of file on stdin at conffile prompt
    geheimnesswebsite: Setting up php7.2-xml (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-dev (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-gd (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-bcmath (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Setting up php7.2-gmp (7.2.9-1+ubuntu16.04.1+deb.sury.org+1) ...
    geheimnesswebsite: Creating config file /etc/php/7.2/mods-available/gmp.ini with new version
    geheimnesswebsite: Processing triggers for libc-bin (2.23-0ubuntu9) ...
    geheimnesswebsite: Errors were encountered while processing:
    geheimnesswebsite: 
    geheimnesswebsite:  php7.2-fpm
    geheimnesswebsite: E
    geheimnesswebsite: : 
    geheimnesswebsite: Sub-process /usr/bin/dpkg returned an error code (1)
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.

vagrant destroy

geheimnesswebsite: Are you sure you want to destroy the 'geheimnesswebsite' VM? [y/N] y
==> geheimnesswebsite: Forcing shutdown of VM...
==> geheimnesswebsite: Destroying VM and associated drives...
==> geheimnesswebsite: Pruning invalid NFS exports. Administrator privileges will be required...:
==> geheimnesswebsite: [vagrant-hostsupdater] Removing hosts

And when I start the VM and install php-fpm I got another problem from symfony :

/var/log/dev.log" could not be opened: failed to open stream: Permission denied

one thing more the www.conf contains the www-data user where is not like that in nginx.conf ??

@svpernova09

This comment has been minimized.

Show comment
Hide comment
@svpernova09

svpernova09 Sep 15, 2018

Member

Edit your after.sh to this:

#!/bin/sh
export DEBIAN_FRONTEND=noninteractive

# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.

# load any extensions you like here
sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install libmagickwand-dev \
imagemagick php-imagick php7.2-gmp
Member

svpernova09 commented Sep 15, 2018

Edit your after.sh to this:

#!/bin/sh
export DEBIAN_FRONTEND=noninteractive

# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.

# load any extensions you like here
sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install libmagickwand-dev \
imagemagick php-imagick php7.2-gmp

svpernova09 added a commit to laravel/docs that referenced this issue Sep 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment