1

I am trying to install Nginx-full on my Debian 8.5 x64 machine, hosted by DigitalOcean like so:

sudo apt-get install nginx-full

but I am receiving the following error:

~>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).

I understand what is the problem here, It's the solution that is bugging me. Is there a simple way to say "hey, please install all of these" or not really? :)

  • "Try 'apt-get -f install'" you have this solution inside your question. – Navern Aug 2 '16 at 12:32
  • Nope. Same response – Alex Starbuck Aug 2 '16 at 12:34
  • As explained in our guide to writing better questions please edit into your question that you did as suggested and ran apt-get -f install and the results of that. (Don't rely on ephemeral comments to hold useful info) – HBruijn Aug 3 '16 at 6:54
  • The message explicitly told you to run apt-get -f install with no package names. But you didn't do that. Please try again. – Michael Hampton Aug 3 '16 at 8:35
  • @Navern (and Michael Hampton) - I apologise, please make your comment an answer and I will accept it. I must have been doing something wrong, it worked today! Thanks for the effort once again. – Alex Starbuck Aug 3 '16 at 8:41
3

apt-get install -f without specifying any package name should fix your issues and install required dependencies.

  • Could you expand? Is it dangerous running -f? – Kyslik Feb 21 '17 at 14:35
  • you could man apt-get install for further explanation. In short -f means to fix broken dependecies and it should be safe to run like that, however sometimes it wouldn't be enough. – Navern Feb 27 '17 at 11:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.