Report this

What is the reason for this report?

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

Posted on November 20, 2020

Was following tutorial for installing nginx on my ubuntu 20.04 droplet found here :https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04 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 https://packages.ubuntu.com/focal/httpd/ 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



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.