Skip to content

fixes problem with package name change from php5-mysql to php-mysql on 16.04 #889

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

Merged
merged 1 commit into from
Sep 29, 2016

Conversation

ppouliot
Copy link

This fixes the following error which occurs during usage on ubuntu 16.04:

Debug: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-mysql'
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-mysql' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-mysql' has no installation candidate
/usr/lib/ruby/vendor_ruby/puppet/util/execution.rb:219:in execute' /usr/lib/ruby/vendor_ruby/puppet/provider/command.rb:23:inexecute'
/usr/lib/ruby/vendor_ruby/puppet/provider.rb:237:in block in has_command' /usr/lib/ruby/vendor_ruby/puppet/provider.rb:463:inblock in create_class_and_instance_method'
/usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:73:in install' /usr/lib/ruby/vendor_ruby/puppet/type/package.rb:73:inblock (3 levels) in module:Puppet'
/usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in call_valuemethod' /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:inset'
/usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in sync' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:204:insync'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:128:in sync_if_needed' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:81:inperform_changes'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in evaluate' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:204:inapply'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:217:in eval_resource' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:147:incall'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in block (2 levels) in evaluate' /usr/lib/ruby/vendor_ruby/puppet/util.rb:335:inblock in thinmark'
/usr/lib/ruby/2.3.0/benchmark.rb:308:in realtime' /usr/lib/ruby/vendor_ruby/puppet/util.rb:334:inthinmark'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:147:in block in evaluate' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:intraverse'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:138:in evaluate' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:169:inblock in apply'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:149:in with_destination' /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:112:inas_logging_destination'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:168:in apply' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:120:inblock in apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:161:in block in benchmark' /usr/lib/ruby/2.3.0/benchmark.rb:308:inrealtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:160:in benchmark' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:119:inapply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:227:in run_internal' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:134:inblock in run'
/usr/lib/ruby/vendor_ruby/puppet/context.rb:64:in override' /usr/lib/ruby/vendor_ruby/puppet.rb:246:inoverride'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:133:in run' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:47:inblock (4 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/agent/locker.rb:20:in lock' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:47:inblock (3 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:117:in with_client' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:44:inblock (2 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:82:in run_in_fork' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:43:inblock in run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:179:in controlled_run' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:41:inrun'
/usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:361:in onetime' /usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:327:inrun_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in block (2 levels) in run' /usr/lib/ruby/vendor_ruby/puppet/application.rb:507:inplugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in block in run' /usr/lib/ruby/vendor_ruby/puppet/util.rb:496:inexit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:381:in run' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:146:inrun'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:92:in execute' /usr/bin/puppet:8:in

'
Error: /Stage[main]/Mysql::Bindings::Php/Package[php-mysql]/ensure: change from purged to present failed: E xecution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-mysql' returned 100: Re ading package lists...
Building dependency tree...
Reading state information...
Package php5-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-mysql' has no installation candidate

Copy link
Contributor

@JAORMX JAORMX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bmjen
Copy link
Contributor

bmjen commented Sep 29, 2016

Thanks @ppouliot !

@bmjen bmjen merged commit ccea304 into puppetlabs:master Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants