Al intentar actualizar mi Ubuntu 12.04 vps me sale el siguiente error:
henrik@neung:~$ sudo apt-get upgrade
[sudo] password for henrik:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
nginx-full : Depends: nginx-common (= 1.2.4-1ubuntu0ppa2~precise) but 1.2.4-2ubuntu0ppa1~precise is installed
E: Unmet dependencies. Try using -f.
Entonces trato de ejecutar esto:
henrik@neung:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
nginx-full
The following packages will be upgraded:
nginx-full
1 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
2 not fully installed or removed.
Need to get 0 B/441 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of nginx-full:
nginx-full depends on nginx-common (= 1.2.4-1ubuntu0ppa2~precise); however:
Version of nginx-common on system is 1.2.4-2ubuntu0ppa1~precise.
dpkg: error processing nginx-full (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full | nginx-light; however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
dpkg: error processing nginx (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
¿Alguien puede ayudar a solucionar esto?

nginxpaquete:sudo apt-get remove nginx* && sudo apt-get install nginx-fullRespuestas:
El problema es que
nginx-fulldepende denginx-common, esto significa que no puede instalar el paquetenginx-fullsin tener una versión específica denginx-common.Aquí hay una pregunta dedicada a este problema, pero la resolución es muy extensa, llegando no solo a uno, sino a diferentes casos. Así que te mostraré un método corto pero efectivo.
En realidad, no sé cómo instalar esa versión de
nginx-common, pero sé que resolverá su problema reinstalando todo el paquete . Para hacerlo, debe ingresar el siguiente comando en una terminal.fuente
Yo tuve el mismo problema. NO tengo Apache, y nada más estaba bloqueando mi puerto 80. NO pude instalar nginx con
ni con
Después de una semana me topé con este pequeño blog: https://etc.banana.fish/?p=75
En este blog, la solución es:
sudo apt-get install nginx-commonlisten [::]:80 default_server;de / etc / nginx / sites-enabled / default (lo hice usando el usuario root)sudo apt-get updatey luegosudo apt-get upgrade.sudo apt-get install nginx-fully funcionó!¡Después de eso pude ver la pantalla de títulos de nginx, cuando escribí la IP de mi servidor remoto!
fuente
Tengo la fuerte sensación de que olvidó ejecutar
sudo apt-get updateantes de ejecutarsudo apt-get upgrade: el administrador de paquetes usa información antigua sobre langinx-commonversión del paquete, mientras quenginx-fullrequiere una versión más nueva.fuente