Instalando o Nginx no Debian 9

0

Aqui está o acordo, estou tentando instalar o Nginx no meu servidor Debian 9 quase puro. Basicamente eu tentei
sudo apt-get instala nginx
e aqui está a saída:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nginx : Depends: nginx-extras (>= 1:1.12.1-8.5.1.8~jessie1) but it is not going to be installed
         Depends: nginx-extras (< 1:1.12.1-8.5.1.8~jessie1.1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.  

entrada:

/etc/apt/source.list  

saída:

deb http://cdn-aws.deb.debian.org/debian stretch main
deb http://security.debian.org stretch/updates main
deb http://cdn-aws.deb.debian.org/debian stretch-updates main

entrada:

apt-cache policy nginx

saída:

nginx:
Installed: (none)
Candidate: 1:1.12.1-8.5.1.8~jessie1
  Version table:
 1:1.12.1-8.5.1.8~jessie1 500
    500 https://oss-binaries.phusionpassenger.com/apt/passenger jessie/main amd64 Packages
         .
         .
         .
 1:1.6.3-8.5.0.8~jessie1 500
    500 https://oss-binaries.phusionpassenger.com/apt/passenger jessie/main amd64 Packages
 1.10.3-1+deb9u1 500
    500 http://cdn-aws.deb.debian.org/debian stretch/main amd64 Packages
    500 http://security.debian.org stretch/updates/main amd64 Packages

entrada:

cat /etc/apt/sources.list.d/*

saída:

deb https://oss-binaries.phusionpassenger.com/apt/passenger jessie main
deb https://oss-binaries.phusionpassenger.com/apt/passenger stretch main
    
por Eren Kemal İçecek 20.09.2017 / 12:44

1 resposta

1

Eu encontrei a mesma pergunta no stackoverflow para o Ubuntu 14.04, eu fiz uma pequena mudança nele e voila!

sudo nano /etc/apt/sources.list.d/passenger.list

e comentou.

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

depois disso

sudo apt-get update
sudo apt-get install nginx nginx-extras

estava tudo bem para a minha situação. Descomentar novamente

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

E eu estava pronto para ir.

    
por 21.09.2017 / 08:42