Applicable to:
- Plesk for Linux
Symptoms
Plesk Installer fails on Debian/Ubuntu-based distributions with:
The following packages have unmet dependencies:
libnginx-mod-http-geoip : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
libnginx-mod-http-image-filter : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
libnginx-mod-http-xslt-filter : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
libnginx-mod-mail : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
libnginx-mod-stream : Depends: nginx-common (= 1.14.0-0ubuntu1.2) but it is not going to be installed
nginx : Depends: nginx-core (< 1.14.0-0ubuntu1.2.1~) but it is not going to be installed or
nginx-full (< 1.14.0-0ubuntu1.2.1~) but it is not going to be installed or
nginx-light (< 1.14.0-0ubuntu1.2.1~) but it is not going to be installed or
nginx-extras (< 1.14.0-0ubuntu1.2.1~) but it is not going to be installed
Node.js extension fails to get installed:
Execution installer has failed with exit code 1, stdout: Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
nginx : Depends: nginx-core (>= 1.10.3-0ubuntu0.16.04.5) but it is not going to be installed or
...
...
...
nginx-extras (< 1.10.3-0ubuntu0.16.04.5.1~) but it is not going to be installed
passenger : Depends: rake but it is not going to be installed
Depends: passenger-native-libs (= 5.3.5.1-ubuntu16.04.19061317) but it is not going to be installed
, stderr: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ERROR:root:Command '['apt-get', '-q', '--assume-yes', '-o', 'Dpkg::Options::=--force-confdef', '-o', 'Dpkg::Options::=--force-confold', '-o', 'APT::Install-Recommends=no', '--purge', 'install', 'plesk-nodejs8', 'plesk-nodejs10', 'passenger'
Cause
Dependency conflict between the Plesk 'sw-nginx' package and 3rd-party nginx packages.
Resolution
-
Connect to the Plesk server via SSH.
-
Remove all 3rd-party nginx packages that are mentioned in the error message:
# dpkg -r package1 package2 package3 ...
-
For example, based on the error message above, the following packages should be removed:
# dpkg -r libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream nginx nginx-full nginx-extras nginx-core nginx-light nginx-extras
If the packages fail to be removed using the command above, purge them with the command:
# dpkg -P --force-depends package1 package2 package3 ...
-
-
Verify that only the 'sw-nginx' package is installed:
# dpkg -l | grep nginx
ii sw-nginx
Comments
0 comments
Please sign in to leave a comment.