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

PHP 7.1 on Debian 9 #457

Closed
EpiqSty opened this issue Jul 5, 2018 · 2 comments
Closed

PHP 7.1 on Debian 9 #457

EpiqSty opened this issue Jul 5, 2018 · 2 comments

Comments

@EpiqSty
Copy link

EpiqSty commented Jul 5, 2018

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.2
  • Ruby: 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
  • Distribution: Debian GNU/Linux 9.4 (stretch)
  • Module version: 5.3.0

How to reproduce (e.g Puppet code you use)

php::globals::php_version: '7.1

What are you seeing

E: Unable to locate package php7.1-cli

What behaviour did you expect instead

Looks like repo for PHP 7.1 is missing.
I am expecting, that they should be added by module, is it correct?

Output log

Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php7.1-cli' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.1-cli
E: Couldn't find any package by glob 'php7.1-cli'
E: Couldn't find any package by regex 'php7.1-cli'
Error: /Stage[main]/Php::Packages/Package[php7.1-cli]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php7.1-cli' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.1-cli
E: Couldn't find any package by glob 'php7.1-cli'
E: Couldn't find any package by regex 'php7.1-cli'
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php7.1-common' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.1-common
E: Couldn't find any package by glob 'php7.1-common'
E: Couldn't find any package by regex 'php7.1-common'
Error: /Stage[main]/Php::Packages/Package[php7.1-common]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php7.1-common' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.1-common
E: Couldn't find any package by glob 'php7.1-common'
E: Couldn't find any package by regex 'php7.1-common'

Any additional information you'd like to impart

Honestly, I am not sure, that this configuration is supported at all, could anyone please clarify it?

@TuningYourCode
Copy link
Contributor

You need to set php::manage_repos: true too, as debian stretch only includes php 7.0 in its main repositories.

@EpiqSty
Copy link
Author

EpiqSty commented Jul 16, 2019

thanks, it works with
php::manage_repos: true

@EpiqSty EpiqSty closed this as completed Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants