Estaba haciendo una limpieza de paquetes rotos en Debian 10, y no me dejaba de ninguna manera entonces quité los paquetes del archivo /var/lib/dpkg/status
siguiendo este enlace
este problema se me dió en una instalación algo sencilla, pero no sé que tenia el servidor que me generó problemas al instalar nginx
una vez que hice la reparación de los paquetes rotos
al instalar nginx nuevamente me muestra al final este mensaje
al desempaquetar nginx
Errors were encountered while processing:
/tmp/apt-dpkg-install-vrmvR9/09-nginx-common_1.14.2-2+deb10u1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
yo purge nginx puesto que la instalación no salió bien, sin embargo cuando ejecutaba el comando apt-get upgrade me mostraba la siguiente salida
The following packages have unmet dependencies:
libnginx-mod-http-auth-pam (ok): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
libnginx-mod-http-dav-ext (no esta): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
libnginx-mod-http-echo (ok): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
libnginx-mod-http-geoip (ok): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
libnginx-mod-http-image-filter (ok): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
libnginx-mod-http-subs-filter (ok): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
libnginx-mod-http-upstream-fair (ok): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
libnginx-mod-http-xslt-filter (ok): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
libnginx-mod-mail (ok): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
libnginx-mod-stream (ok): Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
nginx-full : Depends: nginx-common (= 1.14.2-2+deb10u1) but it is not installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
ya había eliminado los paquetes de nginx, nginx-full y nginx-common
entonces eliminé esas dependencias del archivo /var/lib/dpkg/status
despues hice una limpieza y actualización de la lista de paquetes apt-get clean & apt-get update