Update /Upgrade

Having problems with updates.

Package Description Status Source
cyrus-sasl The Cyrus SASL library New version 2.1.26-19.2.el7 Base
cyrus-sasl-gssapi GSSAPI authentication support for Cyrus SASL New version 2.1.26-19.2.el7 Base
cyrus-sasl-lib Shared libraries needed by applications which use Cyrus SASL New version 2.1.26-19.2.el7 Base
cyrus-sasl-md5 CRAM-MD5 and DIGEST-MD5 authentication support for Cyrus SASL New version 2.1.26-19.2.el7 Base
cyrus-sasl-plain PLAIN and LOGIN authentication support for Cyrus SASL New version 2.1.26-19.2.el7 Base
kmod Linux kernel module management utilities New version 20-5.el7 Base
kmod-libs Libraries to handle kernel module loading and unloading New version 20-5.el7 Base
libblkid Block device ID library New version 2.23.2-26.el7 Base
libmount Device mounting library New version 2.23.2-26.el7 Base
libuuid Universally unique ID library New version 2.23.2-26.el7 Base
rsyslog Enhanced system logging and kernel message trapping daemon New version 7.4.7-12.el7 Base
systemd A System and Service Manager New version 219-19.el7 Base
systemd-libs systemd libraries New version 219-19.el7 Base
systemd-sysv SysV tools for systemd New version 219-19.el7 Base
util-linux A collection of basic system utilities New version 2.23.2-26.el7 Base
The above updates are failing to install
Status: 
Active

Comments

Howdy -- what happens when trying to update those packages? Are you receiving an error of some kind? If so, what error are you receiving?

Also, what is the output of this command:

ls /etc/yum.repos.d

Joe's picture
Submitted by Joe on Wed, 01/27/2016 - 17:28 Pro Licensee

Something is going wrong with your update. (I guess that part is obvious.)

But, specifically, the iniscripts package needs to be updated to something newer than 9.49.28 in order to update systemd. yum should handle that automatically, but you could try specifically installing just the update to initscripts first, and then try the rest of the update.

The current version of iniscripts on CentOS 7 is 9.49.30-1. So, if you're not seeing that, the repos you're querying might be out of sync. You might try some other repositories for your CentOS updates, if the problem persists.

OK, how do I do that? I'm not that familiar with the processes, I'll appreciate some guidance.

Also, what was the output of this command:

ls /etc/yum.repos.d

[root@vm3 ~]# ls /etc/yum.repos.d CentOS-Base CentOS-Sources.repo epel.repo vz.repo CentOS-CR.repo CentOS-Vault.repo ohiointernet.repo webtatic-archive.repo CentOS-Debuginfo.repo CentOS-fasttrack.repo virtualmin.repo webtatic-testing.repo CentOS-Media.repo epel-testing.repo virtualmin.repo.rpmnew webtatic.repo [root@vm3 ~]#

Note: virtualmin.repo is in GREEN TEXT Note: virtualmin.repo.rpmnew is in WHITE TEXT on a RED BACKGROUND

It looks like you have a number of repositories enabled that aren't included with a default version of CentOS.

It's possible one of those repositories is causing a problem.

My suggestion would be to disable any of those repositories that aren't provided in a default CentOS installation, and then attempt the update again.

After doing that, let us know what output you see at that point.

OK, we removed some repo file and the directory looks like this now:

[root@vm3 ~]# ls /etc/yum.repos.d CentOS-Base CentOS-Sources.repo epel.repo vz.repo CentOS-CR.repo CentOS-Vault.repo
CentOS-Debuginfo.repo CentOS-fasttrack.repo virtualmin.repo
CentOS-Media.repo epel-testing.repo virtualmin.repo.rpmnew
[root@vm3 ~]#

Note: virtualmin.repo is in GREEN TEXT Note: virtualmin.repo.rpmnew is in WHITE TEXT on a RED BACKGROUND

The updates stiil don't work

I would also suggest temporarily removing CentOS-Vault.repo, CentOS-fasttrack.repo, CentOS-CR.repo, epel-testing.repo, epel.repo, and vz.repo.

The virtualmin.repo.rpmnew file should be safe to ignore.

Does doing that make a difference in being able to update your packages?

Oh, and if the above doesn't help, what is the output of this command:

cat /etc/yum.conf

[main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfine=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=5 bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.cen...$ distroverpkg=centos-release exclude=initscripts

This is the default, if you make this bigger yum won't see if the metadata is newer on the remote and so you'll "gain" the bandwidth of not having to download the new metadata and "pay" for it by yum not having correct information It is esp. important, to have correct metadata, for distributions like Fedora which don't keep old packages around. If you don't like this checking interupting your command line usage, it's much better to have something manually check the metadata once an hour (yum-updatesd will do this). metadata_expire=90m PUT YOUR REPOS HERE OR IN separate files named file.repo in /etc/yum.repos.d

Hmm, this line looks unusual:

exclude=initscripts

Do you know how that was added?

No, I have no idea. Should we remove it? Anything else looks suspicious?

Try commenting out that line, and then running the updates again.