Showing posts with label yum. Show all posts
Showing posts with label yum. Show all posts

Sunday, June 14, 2015

"Error: Multilib version problems found" When Installing Required RPMS on OEL 6

Following error could be seen while trying to install required RPMS as part of 12c pre-req task (1529864.1). OS is OEL 6 (2.6.32-358.18.1.el6.x86_64).
yum install libXi.i686
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libXi.i686 0:1.7.2-2.2.el6 will be installed
--> Processing Dependency: libXext.so.6 for package: libXi-1.7.2-2.2.el6.i686
--> Running transaction check
---> Package libXext.x86_64 0:1.3.1-2.el6 will be updated
---> Package libXext.i686 0:1.3.2-2.1.el6 will be installed
---> Package libXext.x86_64 0:1.3.2-2.1.el6 will be an update
--> 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 libXi which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of libXi 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 libXi.otherarch ... this should give you an error
            message showing the root cause of the problem.

         2. You have multiple architectures of libXi 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 libXi 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: libXi-1.7.2-2.2.el6.i686 != libXi-1.6.1-3.el6.x86_64
 You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64 has missing requires of kernel-uek
oracle-rdbms-server-12cR1-preinstall-1.0-8.el6.x86_64 has missing requires of kernel-uek
In this case the root cause as the output suggested was that i686 version of the rpm was of higher version than already installed x86_64 version.


To resolve this update the currently installed x86_64 version and then install the i686 version.
yum update libXi
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package libXi.x86_64 0:1.6.1-3.el6 will be updated
...

yum install libXi.i686
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libXi.i686 0:1.7.2-2.2.el6 will be installed
....
Useful metalink notes
Yum update command fails with error around multilib missmatch [ID 1670710.1]
Troubleshooting Common Issues While Registering RHEL Servers With ULN [ID 1984132.1]
Error "Transaction Check Error: file /etc/pki/rpm-gpg/RPM-GPG-KEY from ... " When Upgrading Oracle Linux Server [ID 1996064.1]

Friday, November 28, 2014

Creating Local Yum Repository Using an ISO or DVD for RHEL5, 6 and 7

Creating a local yum repository allows a convenient way of installing the required rpms as part of an Oracle installation. Using yum repository is convenient as oppose to installing required rpms via rpm -i as yum fetches the necessary dependencies from the repository. The post gives the steps for setting up local yum repository for RHEL5, RHEL6 and RHEL7 using either ISO or DVD which has the installation.
Mount the ISO or the DVD. In all cases the ISO or DVD is mounted on /media mount point.

Setting up local yum repository on RHEL 5.
Currently there are no repositories.
 yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
repolist: 0
Create the repository file (extension must be .repo).
cat rhel5.repo
[RHEL5ISO]
name=RHEL 5 ISO
baseurl=file:///media/Server
enabled=1
gpgcheck=1
gpgkey=file:///media/RPM-GPG-KEY-redhat-release
The repository data is taken from "repodata/repomd.xml". In RHEL5 this is located inside the Server directory for linux server installation. Similar repomd.xml exists for cluster,clusterstorage and VT. Setting only /media for baseurl will result in following error
file:///media/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/media/repodata/repomd.xml'
If the gpgcheck is set to 1 (enabled) then prior to installing a package authenticity of it is checked using the GPG signatures. For this to work the gpgkey must be set to the RPM-GPG-KEY-redhat-release file which is available under /media.
Once the file is setup run the following commands to clean and list the repository data.
yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything

yum repolist
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
RHEL5ISO                                                                                                                                                                                                               | 1.5 kB     00:00
RHEL5ISO/primary                                                                                                                                                                                                       | 920 kB     00:00
RHEL5ISO                                                                                                                                                                                                                            3285/3285
repo id                                   repo name                                      status
RHEL5ISO                                  RHEL 5 ISO                                     enabled: 3,285 repolist: 3,285
Run yum list or yum grouplist to test the repository is working.
yum grouplist
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
RHEL5ISO                                                                                                                                                                                                               | 1.5 kB     00:00
RHEL5ISO/primary                                                                                                                                                                                                       | 920 kB     00:00
RHEL5ISO/group                                                                                                                                                                                                         | 1.0 MB     00:00
Installed Groups:
   Administration Tools
   Authoring and Publishing
   Development Libraries
   Development Tools
   Editors
   FTP Server
   GNOME Desktop Environment
   GNOME Software Development
   Graphical Internet
   Legacy Network Server
   Legacy Software Development
   Legacy Software Support
   Mail Server
   Network Servers
   Office/Productivity
   Printing Support
   Server Configuration Tools
   System Tools
   Text-based Internet
   X Software Development
   X Window System
Available Groups:
   DNS Name Server
   Engineering and Scientific
   Games and Entertainment
   Graphics
   Java Development
   KDE (K Desktop Environment)
   KDE Software Development
   MySQL Database
   News Server
   OpenFabrics Enterprise Distribution
   PostgreSQL Database
   Sound and Video
   Web Server
   Windows File Server
Done



Setting up local yum repository on RHEL 6 and RHEL 7.
Setting up local yum repository for both RHEL6 and RHEL7 is similar and same repo file could be used for both RHEL versions. Only difference between these RHEL versions and the RHEL5 is the baseurl.
cat rhel6.repo
[RHEL6ISO]
name=RHEL 6 ISO
baseurl=file:///media
enabled=1
gpgcheck=1
gpgkey=file:///media/RPM-GPG-KEY-redhat-release
The "repodata/repomd.xml" is available from the base media directory. As such baseurl is set to the mount point of the ISO or the DVD.
Run yum clean all and yum repolist as before and use grouplist to validate the repository.
From RHEL 6
 yum grouplist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Group Process
RHEL6ISO/group_gz                                                                                                                                                                                                      | 204 kB     00:00 ...
Installed Groups:
   Additional Development
   Base
   Compatibility libraries
   Console internet tools
   Debugging Tools
   Desktop Platform
   Dial-up Networking Support
   Directory Client
   E-mail server
   FTP server
   Fonts
   General Purpose Desktop
   Graphical Administration Tools
   Hardware monitoring utilities
   Java Platform
   KDE Desktop
....
From RHEL7
 yum grouplist
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Available environment groups:
   Minimal Install
   Infrastructure Server
   File and Print Server
   Basic Web Server
   Virtualization Host
   Server with GUI
Available Groups:
   Compatibility Libraries
   Console Internet Tools
   Development Tools
   Graphical Administration Tools
   Legacy UNIX Compatibility
   Scientific Support
   Security Tools
   Smart Card Support
   System Administration Tools
   System Management
Done

Wednesday, April 28, 2010

Public YUM Server

Oracle has a public yum server which offers a free and convenient way to install packages from the Enterprise Linux and Oracle VM installation media via a yum client.

Oracle Enterprise Linux 4, Update 6 or Newer

# cd /etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget http://public-yum.oracle.com/public-yum-el4.repo

Oracle Enterprise Linux 5

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo

Oracle Enterprise Linux 6

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo

Oracle VM 2

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ovm2.repo

Enable the appropriate repository by editing the yum configuration file

* Open the yum configuration file in a text editor
* Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base]
* Change enabled=0 to enabled=1

Test with
yum list