Install VirtualBox
Any thoughts?
Responses
What version of the kernel are you running on? --> uname -i Also, have you tried it from the command line? Can you send the output of what is listed when your run the yum localinstall VirtualBox*.rpm?
Sounds like one of your yum repositories is missing its header section.
Each repo needs to be defined with a header in square brackets, for example:
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Look through all the files in /etc/yum.repos.d/* and find the broken one.
I presume that when you say you "updated your yum" you ran "yum update", which does not necessarily update yum itself (though it can) but which checks all installed packages on the system for potential updates. In that case, the update resulted in the installation of the 2.6.32-358.2.1 kernel (RHEL 6.4), so that new package is (correctly) shown by "rpm -qa". Until you restart your system to load the new kernel, you're still running the 2.6.32-279 image (RHEL 6.3) that you last booted from and so that's what "uname -i" reports. The version numbers should match after a system restart.
Also, note that your "rpm -qa kernel |sort |tail -n 1" command will not reliably show you the latest kernel you have on your system because of how sort deals with the format of the kernel package names. One of my systems right now shows this list from "rpm -qa kernel |sort":
kernel-2.6.18-348.2.1.el5
kernel-2.6.18-348.3.1.el5
kernel-2.6.18-348.el5
If I pull "tail -n 1" from that list I get the oldest kernel on the system, not the newest.
u can add a repository to your yum and then will be able to install virtualbox. its the oracle's standard repository from the official site:
# vim /etc/yum.repos.d/oracle.repo
[virtualbox]
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
# yum clean all
# yum install VirtualBox-4.2
it worked for me, hope it works!!
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
