Problema ao rebaixar o nginx - não é possível remover dependências

1

Eu preciso fazer o downgrade do nginx de 1.10.1 para 1.4.6. No entanto eu fiquei preso. Por favor, dê uma olhada na lista abaixo:

root@FServer:~# nginx -v
nginx version: nginx/1.10.1
root@FServer:~# apt-cache policy nginx
nginx:
  Installed: 1:1.10.1-8.5.0.29~trusty1
  Candidate: 1:1.10.1-8.5.0.29~trusty1
  Version table:
 *** 1.10.1-0+trusty0 0
        500 http://ppa.launchpad.net/nginx/stable/ubuntu/ trusty/main amd64 Packages
     1.4.6-1ubuntu3.5 0
        500 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
root@FServer:~# apt-get remove --auto-remove nginx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  nginx
0 upgraded, 0 newly installed, 1 to remove and 388 not upgraded.
After this operation, 55.3 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 125312 files and directories currently installed.)
Removing nginx (1:1.10.1-8.5.0.29~trusty1) ...
root@FabServer:~# sudo apt-get install nginx=1.4.6-1ubuntu3
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-core (< 1.4.6-1ubuntu3.1~) but 1:1.10.1-8.5.0.29~trusty1 is to be installed or
                  nginx-full (< 1.4.6-1ubuntu3.1~) but 1:1.10.1-8.5.0.29~trusty1 is to be installed or
                  nginx-light (< 1.4.6-1ubuntu3.1~) but 1:1.10.1-8.5.0.29~trusty1 is to be installed or
                  nginx-extras (< 1.4.6-1ubuntu3.1~) but 1:1.10.1-8.5.0.29~trusty1 is to be installed or
                  nginx-naxsi (< 1.4.6-1ubuntu3.1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

root@FServer:~# apt-get remove --auto-remove nginx-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'nginx-core' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 388 not upgraded.

Então eu tenho uma situação estranha - formalmente o pacote nginx não tem dependências ao remover, mas sim ao instalá-lo. Também não posso remover pacotes como nginx-core porque acho que o sistema não está instalado.

O que você pode recomendar?

    
por Paul Serikov 26.06.2016 / 23:41

1 resposta

0

Problema de dependência resolvido com o uso de imagens oficiais do nginx Docker

    
por Paul Serikov 27.03.2017 / 23:55