Nginx with Nginx-extras

I have a customer environment where there is nginx was already installed with version 1.25.0 ( this is from Nginx) and have nginx-extras package from Debian. I am trying to upgrade nginx version to 1.26.0 ( current stable version), but nginx-extras have conflicts when doing so. Any suggestions from experts please. Part of my main.docker file is as follows

FROM nginx:1.25.0 AS xyz_nginx
RUN apt-get update
RUN apt-get install --fix-broken nano nginx-extras -y
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
RUN rm /etc/nginx/sites-enabled/default
COPY --from=base /usr/src/www/static /usr/src/www/static

Moving to the How Do I Category.

1 Like

I believe that this is related to the differences in packaging between the official nginx.org packages and those maintained by debian. Mainly, it looks like the nginx-extras package is looking for ‘nginx-common’ as the package providing nginx. Is there a specific module you are looking to use from the nginx-extras package? It looks like this package is simply installing a group of dynamic modules for nginx. You may be better off installing the specific modules you need, rather than all of the ones included in the nginx-extras package.