skip to Main Content

I’m following the instructions on how to install nginx here:
https://www.nginx.com/resources/wiki/start/topics/tutorials/install/

But no matter what I do I always get:

http://nginx.org/packages/mainline/centos/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

My nginx.repo file is like so:

cat /etc/yum.repos.d/nginx.repo 
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/
gpgcheck=0

I also tried centos 6 and same thing.

So either the instructions are wrong, I’m doing something wrong, or nginx’s yum repos are down.

Maybe I have to compile nginx from source as an alternative?

I don’t see any mention anywhere on nginx’s repos being down:
https://mailman.nginx.org/pipermail/nginx/2024-February/thread.html

2

Answers


  1. Getting the same for Ubuntu, the repos indeed seem to be down:

    E: The repository 'http://nginx.org/packages/ubuntu focal Release' no longer has a Release file.
    
    Login or Signup to reply.
  2. Same for debian!

    E: The repository 'http://nginx.org/packages/debian bookworm Release' does not have a Release file.
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search