I run sudo apt install nginx but I get
Reading package lists… Done Building dependency tree… Done Reading state information… Done E: Unable to locate package nginx
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!
Before trying to install Nginx, update your Droplet like so:
- apt update
- apt upgrade
then try again. By doing an update you’ll update your apt cache which should help with the problem.
Hope that helps!
Hello @biglightcyanmantaray
Nginx is available in Ubuntu’s default repositories, it is possible to install it from these repositories using the apt packaging system.
You can make sure that you’ve enabled all Ubuntu repositories
- sudo add-apt-repository main
- sudo add-apt-repository universe
- sudo add-apt-repository restricted
- sudo add-apt-repository multiverse
and then execute the install command one more time.
However, if you’re still facing issues get back here on this thread and we’ll look into it.
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.