# Failed to update nginx from 1.20.1-14.el9.x86\_64 to 1.24.0-1.el9.ngx.x86\_64 due to several file conflicts during transaction test

**URL:** <https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [September 4, 2023, 9:23am UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211 "2023-09-04T09:23:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![perunija](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@perunija](https://forums.rockylinux.org/u/perunija)\
**Post date:** [September 4, 2023, 9:23am UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211/1 "2023-09-04T09:23:09Z")

</div>

Hello to all RL community.  
This is my very first post on this forum. As I couldn’t find the topic about this particular issue, I’ve decided to open a new one so I hope that someone will help me on this matter.  
As it is already described in the subject I have tried to install a new version of nginx package, so I had to add the specific repo for nginx, and after that I wanted to update the current version to the latest one.  
However, during transaction test, I got a couple of errors regarding file conflicts. I assume the only way to resolve this issue is to completely remove the previous version of nginx and do the fresh installation of the latest package.  
Since our reverse proxy is in the production, I am kindly asking if there is some “gentle” way of doing update without service outage.  
The error output is as follows:

```auto
Error: Transaction test error:
  file /etc/logrotate.d/nginx from install of nginx-1:1.24.0-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-14.el9.x86_64
  file /etc/nginx/mime.types from install of nginx-1:1.24.0-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-14.el9.x86_64
  file /etc/nginx/nginx.conf from install of nginx-1:1.24.0-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-14.el9.x86_64
  file /usr/sbin/nginx from install of nginx-1:1.24.0-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-14.el9.x86_64
  file /var/log/nginx from install of nginx-1:1.24.0-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-14.el9.x86_64

```

Thank you in advance and kind regards from,

Rocky Linux supporter

perunija

---

<div class="post-metadata">

**Author:** ![Ritov](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@Ritov](https://forums.rockylinux.org/u/Ritov)\
**Post date:** [September 4, 2023, 12:09pm UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211/2 "2023-09-04T12:09:13Z")

</div>

So, you are leaving the terrain of the RL distribution with such activities. Its not clear what’s you goal or what’s wrong with the version of the distribution. The best way for problems with foreign packages is to ask there where the package comes from …

---

<div class="post-metadata">

**Author:** ![perunija](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@perunija](https://forums.rockylinux.org/u/perunija)\
**Post date:** [September 4, 2023, 12:40pm UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211/3 "2023-09-04T12:40:09Z")

</div>

@Ritov Hello, thank you for your quick response.  
The reason I’ve decided to update nginx is because I have errors in the nginx logs regarding SSL and I have found that this is a bug in nginx:

> <https://github.com/openssl/openssl/issues/18866>
>
> Hello, 2-3 weeks ago i started getting errors from my website based on laravel:
> …
> !\[image\](https://user-images.githubusercontent.com/43743205/180799394-1c3fee8d-c7e9-4adf-8913-218646c83436.png)
> I can't find any reasons or solution of this error.
> \`OS\`:
> Ubuntu 22.04 LTS
> 
> \`php -v\`:
> PHP 8.1.2 (cli) (built: Jun 13 2022 13:52:54) (NTS)
> Copyright (c) The PHP Group
> Zend Engine v4.1.2, Copyright (c) Zend Technologies
> with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies
>     
> \`openssl version -a\`:
> OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
> 
> \`nginx -v\`:
> nginx version: nginx/1.18.0 (Ubuntu)
> 
> SSL certificate from Let's encrypt via \`certbot\`

I didn’t wan’t to make any confusion, I know it is an nginx issue and not a RL one.  
Sorry for any inconvenience made.  
Kind regards,  
perunija

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [September 4, 2023, 1:14pm UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211/4 "2023-09-04T13:14:23Z")

</div>

> [@perunija](#):
>
> I know it is an nginx issue and not a RL one.

Red Hat maintains the version of nginx (and other packages) that is in RHEL.  
Rocky, due to its nature, has what RHEL has – bug for bug.

If Red Hat is made aware of issue that is in RHEL version of nginx, then they have three (four) options:  
A. _Backport_ a fix into the RHEL version  
B. _Rebase_ the package to upstream version  
C. Release upstream version as separate _Application Stream_  
D. Do nothing (now), if the issue is not serious

They prefer option A to option B and since RHEL 8 the option C does trump option B too.

* * *

What is in el9 now? (These outputs are from AlmaLinux 9, but still “close enough”):

```plaintext
$ dnf list nginx
Available Packages
nginx.x86_64 1:1.20.1-14.el9.alma.1 appstream

```

The default appears to be 1.20. I’d guess option D or A, because:

```plaintext
$ dnf module list nginx
Alma 9 - AppStream
Name Stream Profiles Summary                
nginx 1.22 common [d] nginx webserver        

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

```

RH has used option C (once) to add a _stream_ for 1.22.

* * *

Use the 1.22. If that nginx has the issue too, then replicate the error with CentOS Stream 9 and report the “CentOS Stream bug” to Red Hat.

---

<div class="post-metadata">

**Author:** ![Ritov](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@Ritov](https://forums.rockylinux.org/u/Ritov)\
**Post date:** [September 4, 2023, 1:19pm UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211/5 "2023-09-04T13:19:43Z")

</div>

Just to add the process (i assume that you have still the distro packages installed):

```auto
# yum module enable nginx:1.22
# yum update

```

---

<div class="post-metadata">

**Author:** ![perunija](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@perunija](https://forums.rockylinux.org/u/perunija)\
**Post date:** [September 4, 2023, 1:35pm UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211/6 "2023-09-04T13:35:12Z")

</div>

Thank you very much for your support on this issue, I managed to update nginx to 1.22.1-3 as per @Ritov 's instructions.  
Issue with nginx ssl errors is resolved.  
Cheers!!!

---

<div class="post-metadata">

**Author:** ![Ritov](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@Ritov](https://forums.rockylinux.org/u/Ritov)\
**Post date:** [September 4, 2023, 8:00pm UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211/7 "2023-09-04T20:00:05Z")

</div>

_Dear fellow 😉 ,  
leave at least a like,  
or best mark one or another  
answer as a solution.  
Only then ride into the sunset._ 🤣

---

<div class="post-metadata">

**Author:** ![perunija](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@perunija](https://forums.rockylinux.org/u/perunija)\
**Post date:** [September 5, 2023, 5:29am UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211/8 "2023-09-05T05:29:32Z")

</div>

Yes, you are right 100% regarding my behavior, but luckily it’s something that I can easily fix.  
My apologies.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [November 4, 2023, 5:30am UTC](https://forums.rockylinux.org/t/failed-to-update-nginx-from-1-20-1-14-el9-x86-64-to-1-24-0-1-el9-ngx-x86-64-due-to-several-file-conflicts-during-transaction-test/11211/9 "2023-11-04T05:30:07Z")

</div>

Closed on November 4, 2023, 5:30am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
