Packages are unsatisfied when I try to install nginx

when i try to start sudo apt-get install nginx-fulli get this error:

The following packages have unmet dependencies:
nginx-full : Depends: nginx-extras (>= 1:1.10.1-8.5.0.30~trusty1) but it is not going to be installed
Depends: nginx-extras (< 1:1.10.1-8.5.0.30~trusty1.1~) but it is not going to be installed

so I run apt-get install nginx-extrasand get this error:

The following packages have unmet dependencies:
nginx-extras : Depends: perlapi-5.18.2 but it is not installable
               Depends: libperl5.18 (>= 5.18.2) but it is not installable
               Recommends: passenger (< 5.0.31) but 1:5.0.30-1~wheezy1 is to be installed
E: Unable to correct problems, you have held broken packages.

How can i fix it?

+4
source share
3 answers

There may be an ubuntu version error, try this command ~

sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger xenial main> /etc/apt/sources.list.d/passenger.list

+3
source

I also encountered the same problem when setting up my application https://www.wiki11.com .

Phusion Passenger 4, apt-.

deb https://oss-binaries.phusionpassenger.com/apt/passenger/4 trusty main 

sudo apt-get install nginx-extras
0

For me, I solved this problem by deleting the added repository link. I deleted it from my ubuntu digital server.

sudo rm -rf / etc / apt / sources.list.d / passenger.list

0
source

Source: https://habr.com/ru/post/1659453/


All Articles