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

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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