apt-get install -f
sem especificar nenhum nome de pacote deve corrigir seus problemas e instalar as dependências necessárias.
Estou tentando instalar o Nginx-full na minha máquina Debian 8.5 x64, hospedada pela DigitalOcean assim:
sudo apt-get install nginx-full
mas estou recebendo o seguinte erro:
~>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:
~>atom :
Depends: gconf2 but it is not going to be installed
Depends: gconf-service but it is not going to be installed
Depends: libnotify4 but it is not going to be installed
Depends: libxtst6 but it is not going to be installed
Depends: libnss3 but it is not going to be installed
Depends: gvfs-bin but it is not going to be installed
Depends: xdg-utils but it is not going to be installed
~>nginx-full : Depends: nginx-common (= 1.6.2-5+deb8u2) but it is not going to be installed
Depends: libgd3 (>= 2.1.0~alpha~) but it is not going to be installed
~>E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a > solution).
Eu entendo qual é o problema aqui, é a solução que está me incomodando. Existe uma maneira simples de dizer "ei, por favor, instalar todos estes" ou não realmente? :)