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::manage_repos: true" causes failure on Ubuntu 18.04, needs newer puppetlabs-apt version(>=5.0.0) #467

Closed
l-lotz opened this issue Aug 8, 2018 · 3 comments

Comments

@l-lotz
Copy link
Contributor

l-lotz commented Aug 8, 2018

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.4-1bionic
  • Ruby:
  • Distribution: Ubuntu 18.04
  • Module version: 6.0.0

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

Set the following in hiera:
php::manage_repos: true

What are you seeing

PPA installation fails because package "python-software-properties" does not exist.

What behaviour did you expect instead

clean puppet run that installs ondrej ppa

Output log

    int: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python-software-properties' returned 100: Reading package lists...
    int: Building dependency tree...
    int: Reading state information...
    int: Package python-software-properties is not available, but is referred to by another package.
    int: This may mean that the package is missing, has been obsoleted, or
    int: Notice: /Stage[main]/Php::Repo::Ubuntu/Apt::Ppa[ppa:ondrej/php]/Exec[add-apt-repository-ppa:ondrej/php]: Dependency Package[python-software-properties] has failures: true
    int: is only available from another source
    int: However the following packages replace it:
    int:   software-properties-common
    int:
    int: E: Package 'python-software-properties' has no installation candidate
    int: Error: /Stage[main]/Php::Repo::Ubuntu/Apt::Ppa[ppa:ondrej/php]/Package[python-software-properties]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python-software-properties' returned 100: Reading package lists...
    int: Building dependency tree...
    int: Reading state information...
    int: Package python-software-properties is not available, but is referred to by another package.
    int: This may mean that the package is missing, has been obsoleted, or
    int: is only available from another source
    int: However the following packages replace it:
    int:   software-properties-common
    int:
    int: E: Package 'python-software-properties' has no installation candidate
    int: Warning: /Stage[main]/Php::Repo::Ubuntu/Apt::Ppa[ppa:ondrej/php]/Exec[add-apt-repository-ppa:ondrej/php]: Skipping because of failed dependencies
    int: Notice: /Stage[main]/Php::Repo::Ubuntu/Apt::Ppa[ppa:ondrej/php]/File[/etc/apt/sources.list.d/ondrej-ubuntu-php-bionic.list]: Dependency Package[python-software-properties] has failures: true
    int: Warning: /Stage[main]/Php::Repo::Ubuntu/Apt::Ppa[ppa:ondrej/php]/File[/etc/apt/sources.list.d/ondrej-ubuntu-php-bionic.list]: Skipping because of failed dependencies

Any additional information you'd like to impart

This is fixed with puppetlabs/apt >= 5.0.0, but puppet/php metadata.json requires puppetlabs/apt<5.0.0

Workaround:
Set apt::ppa_package: 'software-properties-common'

@bastelfreak
Copy link
Member

@l-lotz can you provide a PR to update it to < 6.0.0 in the metadata.json?

@l-lotz
Copy link
Contributor Author

l-lotz commented Aug 8, 2018

I created the pull request #468

@bastelfreak
Copy link
Member

Fixed in #469

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

Successfully merging a pull request may close this issue.

2 participants