LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-15-2020, 11:07 PM   #1
OsakaWebbie
LQ Newbie
 
Registered: Jun 2012
Location: Osaka, Japan
Distribution: CentOS 7.4
Posts: 7

Rep: Reputation: Disabled
Question Dependency error on nginx while trying yum update


After ages ignoring my VPS (CentOS 7.4.1708), I decided I should do `yum update`. (Yeah, yeah, I know I should do it more often.)

It spewed through the dependency checks of a ton of stuff, and then got to nginx and said this:

Code:
---> Package nginx-all-modules.noarch 1:1.10.2-1.el7 will be updated
--> Processing Dependency: nginx-all-modules = 1:1.10.2-1.el7 for package: 1:nginx-1.10.2-1.el7.x86_64
---> Package nginx-filesystem.noarch 1:1.10.2-1.el7 will be updated
--> Processing Dependency: nginx-filesystem = 1:1.10.2-1.el7 for package: 1:nginx-1.10.2-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 1:nginx-1.10.2-1.el7.x86_64 (@epel)
           Requires: nginx-all-modules = 1:1.10.2-1.el7
           Removing: 1:nginx-all-modules-1.10.2-1.el7.noarch (@epel)
               nginx-all-modules = 1:1.10.2-1.el7
           Updated By: 1:nginx-all-modules-1.16.1-1.el7.noarch (epel)
               nginx-all-modules = 1:1.16.1-1.el7
Error: Package: 1:nginx-1.10.2-1.el7.x86_64 (@epel)
           Requires: nginx-filesystem = 1:1.10.2-1.el7
           Removing: 1:nginx-filesystem-1.10.2-1.el7.noarch (@epel)
               nginx-filesystem = 1:1.10.2-1.el7
           Updated By: 1:nginx-filesystem-1.16.1-1.el7.noarch (epel)
               nginx-filesystem = 1:1.16.1-1.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
--skip-broken sounds more like a bandaid than a solution, and I don't know what the second suggested command does.

Found advice on the web to first run `yum makecache fast` and try again. No change.

Found other advice on the web to run `rpm -qa | grep 'the-package-in-question'`, but I have no idea how to interpret the output:

Code:
$ rpm -qa | grep 'nginx'
nginx-mod-http-xslt-filter-1.10.2-1.el7.x86_64
nginx-mod-http-image-filter-1.10.2-1.el7.x86_64
python2-certbot-nginx-0.27.1-1.el7.noarch
nginx-filesystem-1.10.2-1.el7.noarch
nginx-mod-http-perl-1.10.2-1.el7.x86_64
nginx-mod-stream-1.10.2-1.el7.x86_64
nginx-mod-mail-1.10.2-1.el7.x86_64
nginx-1.10.2-1.el7.x86_64
nginx-mod-http-geoip-1.10.2-1.el7.x86_64
nginx-all-modules-1.10.2-1.el7.noarch
Obviously I don't want to do something stupid and break my webserver. Can someone recommend a course of action, or recognize the problem by looking at the above bits of output? I'm really terrible at this kind of thing - I'm a developer, not a server admin.

Last edited by OsakaWebbie; 03-16-2020 at 01:33 AM.
 
Old 03-15-2020, 11:39 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I'd probably run
Code:
yum check-update
first to see what the state of things are now.
then I'd look at man yum to find out what that second option is going to do.

AFAIK, --skip-broken is less of a "bandaid" and more about just not trying to resolve the problem:
Code:
--skip-broken         skip packages with depsolving problems
And yes, staying current on updates is best.

Last edited by scasey; 03-15-2020 at 11:40 PM.
 
Old 03-16-2020, 01:31 AM   #3
OsakaWebbie
LQ Newbie
 
Registered: Jun 2012
Location: Osaka, Japan
Distribution: CentOS 7.4
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
I'd probably run yum check-update first to see what the state of things are now.
What am I looking for? The nginx part of the output of yum check-update is as follows:

Code:
nginx-all-modules.noarch                    1:1.16.1-1.el7          epel
nginx-filesystem.noarch                     1:1.16.1-1.el7          epel
nginx-mod-http-image-filter.x86_64          1:1.16.1-1.el7          epel
nginx-mod-http-perl.x86_64                  1:1.16.1-1.el7          epel
nginx-mod-http-xslt-filter.x86_64           1:1.16.1-1.el7          epel
nginx-mod-mail.x86_64                       1:1.16.1-1.el7          epel
nginx-mod-stream.x86_64                     1:1.16.1-1.el7          epel
Quote:
then I'd look at man yum to find out what that second option is going to do.
man yum does not mention either --nofiles or --nodigest. I checked both on my server and http://man7.org/linux/man-pages/man8/yum.8.html
 
Old 03-16-2020, 01:41 AM   #4
OsakaWebbie
LQ Newbie
 
Registered: Jun 2012
Location: Osaka, Japan
Distribution: CentOS 7.4
Posts: 7

Original Poster
Rep: Reputation: Disabled
Oh, I just noticed that the command suggesting --nofiles --nodigest is rpm, not yum. But it sounds like just as much of a non-solution as the first one. From man rpm:
Quote:
--nodigest
Don't verify package or header digests when reading.
--nofiles
Don't verify any attributes of package files.
 
Old 03-16-2020, 01:49 AM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Sorry about not paying attention...
I’m not sure either is a “non-solution.” But, I don’t use nginx and I don’t skip updates, so maybe we should wait for someone else to jump in here...
I’d back up the installation and pull the trigger at o’dark-30 some Sunday morning, but that’s just me.

Last edited by scasey; 03-16-2020 at 01:51 AM.
 
  


Reply

Tags
dependencies, nginx, yum update



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
after yum update, can't yum update yet, some error occured novelbean Linux - Newbie 5 04-03-2013 08:13 PM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
yum update dependency error tonj Linux - Newbie 3 10-02-2008 08:26 AM
yum update gives 'Error: Missing Dependency:" on fresh install tightface Linux - Software 4 07-04-2007 02:10 AM
yum update - error. dependency btaylor1988 Linux - Desktop 3 06-11-2007 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration