dirkaholic / vagrant-php-dev-box

PHP 7 vagrant development box with nginx, php-fpm, MySQL, Symfony, Laravel, ... on Ubuntu 16.04
477 stars 142 forks source link

missing php-common version #5

Closed ghost closed 11 years ago

ghost commented 11 years ago
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.3.10-1ubuntu3.3_amd64.deb  404  Not Found [IP: 91.189.91.15 80]

the version available now is ubuntu3.4

I don't know how to fix that

dirkaholic commented 11 years ago

I have a branch where I want to install PHP using an existing recipe, but it's not ready yet https://github.com/dirkaholic/vagrant-php-dev-box/tree/php-module

ghost commented 11 years ago

is there a way to manually bump it?

dirkaholic commented 11 years ago

There should be an apt-get update before all further steps. But maybe it helps to do it manually and then try it again

ghost commented 11 years ago

aha.. but on the 2nd go round it can't find php-common so removes a the php modules for mongodb, mysql, mysqli, pdo_mysql, and suhosin.

I was going to submit a ticket about that, but i figured that i might not run into it if it worked the first time around

ghost commented 11 years ago

to be clear.. this happens when running vagrant up again after building it. I was under the impression that it should result in the exact same config

nestorconde commented 11 years ago

Hi I hit the same problem when running vagrant up, is there any workaround for this issue or any information that could be useful to solve it??

dirkaholic commented 11 years ago

Unfortunately I have not much time to check this but a workaround may be starting vagrant without provisioning after the first run with:

vagrant up --no-provision

Is also a lot faster.

dirkaholic commented 11 years ago

Btw: I know some PHP packages have been removed in ubuntu/debian. They have to be installed using pear now. I accept PR's ;-)

ghost commented 11 years ago

but our main problem is php itself not the packages. I don't know where the decision to use the old php packages comes from. I also am not sure why you are not running into it. Can you try making a box from scratch to see if you run into the same problem?

jakudlaty commented 11 years ago

Hi, i have tried to install from scratch and it failed:

[default] Running Puppet with /tmp/vagrant-puppet/manifests/default.pp...
stdin: is not a tty
info: Loading facts in /tmp/vagrant-puppet/modules-0/stdlib/lib/facter/puppet_vardir.rb
info: Loading facts in /tmp/vagrant-puppet/modules-0/stdlib/lib/facter/root_home.rb
warning: require is a metaparam; this value will inherit to all contained resources
warning: notify is a metaparam; this value will inherit to all contained resources
info: Applying configuration version '1352900206'
err: /Stage[main]/Devbox_php_fpm/Exec[pecl-mongo-install]: Could not evaluate: Could not find command 'pecl'
notice: /Stage[main]/Apache/Package[apache]/ensure: ensure changed 'purged' to 'present'
notice: /Stage[main]/Mongodb::Sources::Apt/Apt::Source[10gen]/Apt::Key[Add key: 7F0CEB10 from Apt::Source 10gen]/Exec[b94ff96203335a23dcd698a0ca82d59bdc9b5292]/returns: executed successfully
err: /Stage[main]/Php::Fpm::Install/Package[php5-fpm]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-fpm' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  php5-common
Suggested packages:
  php5-suhosin php-pear
The following NEW packages will be installed:
  php5-common php5-fpm
0 upgraded, 2 newly installed, 0 to remove and 66 not upgraded.
Need to get 3524 kB of archives.
After this operation, 9219 kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main php5-common amd64 5.3.10-1ubuntu3.3
  404  Not Found [IP: 91.189.91.13 80]
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe php5-fpm amd64 5.3.10-1ubuntu3.3
  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/php5/php5-common_5.3.10-1ubuntu3.3_amd64.deb  404  Not Found [IP: 91.189.91.13 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/p/php5/php5-fpm_5.3.10-1ubuntu3.3_amd64.deb  404  Not Found [IP: 91.189.91.13 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

notice: /Stage[main]/Php::Fpm::Config/File[/etc/php5/fpm/]: Dependency Package[php5-fpm] has failures: true
warning: /Stage[main]/Php::Fpm::Config/File[/etc/php5/fpm/]: Skipping because of failed dependencies
notice: /Stage[main]/Php::Fpm::Config/File[/etc/php5/fpm/pool.d]: Dependency Package[php5-fpm] has failures: true
warning: /Stage[main]/Php::Fpm::Config/File[/etc/php5/fpm/pool.d]: Skipping because of failed dependencies
notice: /Stage[main]/Php::Fpm::Config/File[/etc/php5/fpm/php.ini]: Dependency Package[php5-fpm] has failures: true
warning: /Stage[main]/Php::Fpm::Config/File[/etc/php5/fpm/php.ini]: Skipping because of failed dependencies
notice: /Stage[main]/Devbox_php_fpm/File[/etc/php5/fpm/pool.d/www.conf]: Dependency Package[php5-fpm] has failures: true
warning: /Stage[main]/Devbox_php_fpm/File[/etc/php5/fpm/pool.d/www.conf]: Skipping because of failed dependencies
notice: /Stage[main]/Php::Fpm::Config/File[/etc/php5/fpm/php-fpm.conf]: Dependency Package[php5-fpm] has failures: true
warning: /Stage[main]/Php::Fpm::Config/File[/etc/php5/fpm/php-fpm.conf]: Skipping because of failed dependencies
rohmann commented 11 years ago

< This guy is having the exact same issue as this guy ^

dirkaholic commented 11 years ago

Found time to fix this now. Please let me know if it works for you too.

rohmann commented 11 years ago

Works great! Thank you so much!