Archive

Archive for June, 2015

CentOS 6 libevent multilib issues

June 24th, 2015 No comments

Trying to run a `yum update` on a CentOS 6.4 box was giving multilib errors and failing horribly (this is after sorting out the epel repo ssl problem). After much faffing I finally resolved1 it.

First, the error:

[[email protected]~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 21 kB 00:00
* epel: anorien.csc.warwick.ac.uk
* remi: remi.check-update.co.uk
* rpmforge: ftp.nluug.nl
epel | 4.4 kB 00:00
epel/primary_db | 6.6 MB 00:04
Setting up Update Process
Resolving Dependencies
–> Running transaction check

< -- Packages snipped for berevity, full output is at the bottom of the post -->

–> Finished Dependency Resolution
–> Running transaction check
—> Package kernel.x86_64 0:2.6.32-279.14.1.el6 will be erased
–> Finished Dependency Resolution
Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:

1. You have an upgrade for libevent-devel which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of libevent-devel of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
–exclude libevent-devel.otherarch … this should give you an error
message showing the root cause of the problem.

2. You have multiple architectures of libevent-devel installed, but
yum can only see an upgrade for one of those arcitectures.
If you don’t want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.

3. You have duplicate versions of libevent-devel installed already.
You can use “yum check” to get yum show these errors.

…you can also use –setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).

Protected multilib versions: libevent-devel-2.0.19-1.rhel6.x86_64 != libevent-devel-1.4.13-4.el6.i686
Error: Protected multilib versions: libevent-1.4.13-4.el6.i686 != libevent-2.0.19-1.rhel6.x86_64
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest
[[email protected]~]#

damn that libevent. This probably isn’t helped by the fact we’ve got a handful of 3rd party repos in use.
The PostgreSQL repo actually includes compat-libevent14 which seems to fulfil our needs, so here are the steps to sort everything out:

Read more…

 


  1. I hope I resolved it, it’s going into production in the morning

 

Categories: CentOS & RHEL 6 Tags:

CentOS 6 EPEL & YUM issues

June 24th, 2015 No comments

when trying to update an older CentOS 6.4 box, I was getting hte following errors:

[[email protected]~]# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was
14: problem making ssl connection
* epel: mirror.bytemark.co.uk
* remi: remi.check-update.co.uk
* rpmforge: ftp.nluug.nl
…………

Other places in the internet have suggested editing /etc/yum.repos.d/epel.repo and changing the URL from https://…. to http:// (removing the SSL). This does actually work, but it doesn’t seem very clever.

After lots of going round in circles and then some more clever diffing (`curl -v` is your friend) I realised that the SSL CAs on the box were out of date so it fails to validate the mirror list. And there’s a very easy and correct fix:

yum update ca-certificates

After doing the above epel and everything else is much happier.

Note, on my box, the following deps are also updated:

=================================================================================================================================
 Package                            Arch                   Version                                 Repository               Size
=================================================================================================================================
Updating:
 ca-certificates                    noarch                 2015.2.4-65.0.1.el6_6                   updates                 1.3 M
 nss                                x86_64                 3.18.0-5.3.el6_6                        updates                 856 k
Installing for dependencies:
 p11-kit                            x86_64                 0.18.5-2.el6_5.2                        base                     94 k
 p11-kit-trust                      x86_64                 0.18.5-2.el6_5.2                        base                     71 k
Updating for dependencies:
 nspr                               x86_64                 4.10.8-1.el6_6                          updates                 113 k
 nss-softokn                        x86_64                 3.14.3-22.el6_6                         updates                 262 k
 nss-softokn-freebl                 x86_64                 3.14.3-22.el6_6                         updates                 167 k
 nss-sysinit                        x86_64                 3.18.0-5.3.el6_6                        updates                  45 k
 nss-tools                          x86_64                 3.18.0-5.3.el6_6                        updates                 433 k
 nss-util                           x86_64                 3.18.0-1.el6_6                          updates                  66 k

Transaction Summary
=================================================================================================================================
Install       2 Package(s)
Upgrade       8 Package(s)

Total download size: 3.3 M
Is this ok [y/N]:

To finish off I then run

yum clean all
yum makecache
Categories: CentOS & RHEL 6 Tags: ,

How To Belay

June 5th, 2015 No comments

I’ve been climbing for a while now, but it wasn’t until I read this that I realised how badly I’ve been belaying.

In fact it’s such a useful piece (and I always loose bookmarks) that I felt the need to link to it here:

http://joshdthompson.com/lead-belay-better-in-gifs/

and some knots I should know

Categories: Belay, Climbing Tags: