nginx (nginx-1.20.1-1.el7.ngx.x86_64 to nginx-1.20.1-2.el7.x86_64) update fails

General support questions
Post Reply
deemon
Posts: 4
Joined: 2020/09/25 13:29:43

nginx (nginx-1.20.1-1.el7.ngx.x86_64 to nginx-1.20.1-2.el7.x86_64) update fails

Post by deemon » 2021/10/21 08:19:35

nginx update fails and I can't seem to figure out what to do about it.

Code: Select all

$ sudo yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.far.fi
 * epel: mirror.nsc.liu.se
 * extras: centos.mirror.far.fi
 * updates: centos.mirror.far.fi
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.20.1-1.el7.ngx will be updated
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-image-filter-1.20.1-1.el7.ngx.x86_64
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-xslt-1.20.1-1.el7.ngx.x86_64
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-njs-1.20.1+0.7.0-1.el7.ngx.x86_64
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-perl-1.20.1-1.el7.ngx.x86_64
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-geoip-1.20.1-1.el7.ngx.x86_64
---> Package nginx.x86_64 1:1.20.1-2.el7 will be an update
--> Finished Dependency Resolution
Error: Package: 1:nginx-module-geoip-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (epel)
               Not found
Error: Package: 1:nginx-module-perl-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (epel)
               Not found
Error: Package: 1:nginx-module-image-filter-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (epel)
               Not found
Error: Package: 1:nginx-module-xslt-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (epel)
               Not found
Error: Package: 1:nginx-module-njs-1.20.1+0.7.0-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (epel)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
At first I thought that it can't find nginx file from repo or something, but then I downloaded it with yumdownloader and tried sudo yum localinstall
and still errors. So what exactly is not found? Same way I was able to find and download all the 5 modules using yumdownloader... (also they are up to date and don't need to be updated anyway):

Code: Select all

$ sudo yum localinstall nginx-1.20.1-2.el7.x86_64.rpm nginx-module-geoip-1.20.1-1.el7.ngx.x86_64.rpm nginx-module-image-filter-1.20.1-1.el7.ngx.x86_64.rpm nginx-module-njs-1.20.1+0.7.0-1.el7.ngx.x86_64.rpm nginx-module-perl-1.20.1-1.el7.ngx.x86_64.rpm nginx-module-xslt-1.20.1-1.el7.ngx.x86_64.rpm 
Loaded plugins: fastestmirror
Examining nginx-1.20.1-2.el7.x86_64.rpm: 1:nginx-1.20.1-2.el7.x86_64
Marking nginx-1.20.1-2.el7.x86_64.rpm as an update to 1:nginx-1.20.1-1.el7.ngx.x86_64
Examining nginx-module-geoip-1.20.1-1.el7.ngx.x86_64.rpm: 1:nginx-module-geoip-1.20.1-1.el7.ngx.x86_64
nginx-module-geoip-1.20.1-1.el7.ngx.x86_64.rpm: does not update installed package.
Examining nginx-module-image-filter-1.20.1-1.el7.ngx.x86_64.rpm: 1:nginx-module-image-filter-1.20.1-1.el7.ngx.x86_64
nginx-module-image-filter-1.20.1-1.el7.ngx.x86_64.rpm: does not update installed package.
Examining nginx-module-njs-1.20.1+0.7.0-1.el7.ngx.x86_64.rpm: 1:nginx-module-njs-1.20.1+0.7.0-1.el7.ngx.x86_64
nginx-module-njs-1.20.1+0.7.0-1.el7.ngx.x86_64.rpm: does not update installed package.
Examining nginx-module-perl-1.20.1-1.el7.ngx.x86_64.rpm: 1:nginx-module-perl-1.20.1-1.el7.ngx.x86_64
nginx-module-perl-1.20.1-1.el7.ngx.x86_64.rpm: does not update installed package.
Examining nginx-module-xslt-1.20.1-1.el7.ngx.x86_64.rpm: 1:nginx-module-xslt-1.20.1-1.el7.ngx.x86_64
nginx-module-xslt-1.20.1-1.el7.ngx.x86_64.rpm: does not update installed package.
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.20.1-1.el7.ngx will be updated
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-image-filter-1.20.1-1.el7.ngx.x86_64
Loading mirror speeds from cached hostfile
 * base: centos.mirror.far.fi
 * epel: mirror.nsc.liu.se
 * extras: centos.mirror.far.fi
 * updates: centos.mirror.far.fi
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-xslt-1.20.1-1.el7.ngx.x86_64
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-njs-1.20.1+0.7.0-1.el7.ngx.x86_64
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-perl-1.20.1-1.el7.ngx.x86_64
--> Processing Dependency: nginx-r1.20.1 for package: 1:nginx-module-geoip-1.20.1-1.el7.ngx.x86_64
---> Package nginx.x86_64 1:1.20.1-2.el7 will be an update
--> Finished Dependency Resolution
Error: Package: 1:nginx-module-njs-1.20.1+0.7.0-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (/nginx-1.20.1-2.el7.x86_64)
               Not found
Error: Package: 1:nginx-module-geoip-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (/nginx-1.20.1-2.el7.x86_64)
               Not found
Error: Package: 1:nginx-module-xslt-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (/nginx-1.20.1-2.el7.x86_64)
               Not found
Error: Package: 1:nginx-module-image-filter-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (/nginx-1.20.1-2.el7.x86_64)
               Not found
Error: Package: 1:nginx-module-perl-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
           Requires: nginx-r1.20.1
           Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
               nginx-r1.20.1
           Updated By: 1:nginx-1.20.1-2.el7.x86_64 (/nginx-1.20.1-2.el7.x86_64)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: nginx (nginx-1.20.1-1.el7.ngx.x86_64 to nginx-1.20.1-2.el7.x86_64) update fails

Post by jlehtone » 2021/10/21 08:39:45

Code: Select all

Removing: 1:nginx-1.20.1-1.el7.ngx.x86_64 (@nginx-stable)
Updated By: 1:nginx-1.20.1-2.el7.x86_64 (epel)
You do have nginx installed from repository nginx-stable.
You try to replare it with packages from repository epel.

Two repositories provide nginx, but they have packaged it differently. Incompatible. Mutually exclusive.

Options:
  • Exclude epel content and update from nginx-stable (when it provides updates)
  • Uninstall nginx completely and then install the EPEL version

Post Reply