I am running into some trouble when trying to install packages on my RHEL 6.6 distro which is running off of a USB flash drive. Let me give you a bit of a backstory on this whole ordeal:
I attended a Red Hat workshop a few days ago and they provided us all with USB flash drives containing RHEL 6.6 which can be booted from the USB. Well after the work shop they told us that we cannot use their RHN account with the flash drive that they gave us so we had to unsubscribe from RHN. When I got home I added the CentOS 6.6 repo to /etc/yum.repos.d/ and I was able to download packages using yum and the CentOS 6.6 repo. Well today I was trying to install the Virtualization Client group using :
yum groupinstall "Virtualization Client"
and I received an error message saying that there is a multilib discrepancy between cyrus-sasl-lib-2.1.23-15.el6_6.1.x86_64 and the i686 version. So naturally I thought to myself "why not remove the cyrus-sasl-lib version that is currently installed and them do a yum install cyrus-sasl-lib to install the correct version?" well thats where I made my big mistake. I ran
rpm -e --nodeps cyrus-sasl-lib
which did remove the package but now whenever I try to do a yum install or a yum update or a yum anything it tells me:
There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
libsasl2.so.2: cannot open shared object file: no such file or directory
I then figured I should just download the rpm for cyrus-sasl-lib and install it using rpm -Uvh --replacepkgs cyrus-sasl-lib etc etc.rpm (i found these instructions on a website)
but whenever I attempt to run the command I receive:
error: cyrus-sasl-lib-2.1.23-15.el6_6.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: BAD
error: cyrus-sasl-lib-2.1.23-15.el6_6.1.x86_64.rpm cannot be installed.
A bit of research on the internet informed me that the rpm db might be corrupted so I ran
rpm -vv --rebuilddb
which ran successfully (I think)
but still whenever I try to run the rpm -Uvh or rpm -ivh or RPM anything command to install the cyrus-sasl-lib rpm I still get teh same error messages as above.
I have no idea what to do. I had to boot into single user mode just to be able to run any commands because 1) The system will not allow me to su into root nor login as ANY user whatsover (this is in init 3) and also the system will not boot into the GUI at all, it just hangs there with the "RHEL 6" banner on the screen.
I am totally lost as to what I should do to fix this problem. PLEASE help! All help is greatly appreciated..
I do not want to have to reinstall because I have no idea how the Red Hat team was able to install the distro to the USB and be able to boot from the USB ! Also I am able to write files to the USB booted distro in a persistent manner, i.e. the files do not disappear after I reboot.