trying to install nginx but receive msg "you may have held broken packages"

  • Posted November 20, 2020
  • Nginx

Was following tutorial for installing nginx on my ubuntu 20.04 droplet found here : but have not been successful. After following all of the instructions I made it to this point… sudo apt update sudo apt install nginx When I run the last command I get the response “packages have unmet dependencies” I thought I could track down the modules from and install each one that may be missing, but it wont let me install those either. Im a newbie to this so I’m sure its a simple solution but Ive been trying to figure it out for a whole day now and feel just more confused. Can you help?

Thank you


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, supporte9f4f319ab27f76a702

You can try to install it using this command:

sudo apt --fix-broken install nginx

If this does not solve the issue for you, I will recommend to either delete the /etc/nginx folder and uninstall/remove Nginx and start from scratch or to install it on a fresh droplet if you’re currently trying to install it on a droplet that runs other web servers like Apache and etc.

Hope that this helps! Regards, Alex