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

installatron.pp invalid dependencies for Ubuntu 16.04 #304

Open
NVitanovic opened this issue Dec 22, 2017 · 0 comments
Open

installatron.pp invalid dependencies for Ubuntu 16.04 #304

NVitanovic opened this issue Dec 22, 2017 · 0 comments

Comments

@NVitanovic
Copy link
Contributor

NVitanovic commented Dec 22, 2017

Invalid package names supplied for installation of PHP and additional PHP modules, thus provisioning fails.
installatron

Provisioning errors:

E: Package 'php5-gd' has no installation candidate
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package php5 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' has no installation candidate
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-sqlite' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package php5-sqlite 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-sqlite' has no installation candidate
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libapache2-mod-php5' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package libapache2-mod-php5 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 'libapache2-mod-php5' has no installation candidate
Error: /Stage[main]/Atomia::Installatron/Package[libapache2-mod-php5]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libapache2-mod-php5' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package libapache2-mod-php5 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

Solution for the problem is to change the puppet manifest to loose the suffix 5 on some packages if Ubuntu is version 16.04 and install appropriate packages, or install php7.0 versions of the packages:

Solution 1: php php-gd php-sqlite3 libapache2-mod-php (installs still php7)
Solution 2: php7.0 php7.0-gd php7.0-sqlite3 libapache2-mod-php7.0

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

1 participant