Install VirtualBox

Latest response

 

This is what I'd like to install:
 

 

 
http://download.virtualbox.org/virtualbox/4.2.8/VirtualBox-4.2-4.2.8_83876_el6-1.i686.rpm
 
 
Error Type: <class 'yum.Errors.ConfigError'>
Error Value: File contains no section headers.
 
 
I had VirtualBox working once before but due to low space on my root folder, I decided to do a fresh install of RHEL 6 and then reinstall VirtualBox.

Any thoughts?

 

 

Thanks, Dave.

 

 
 
Many thanks about my USB intregration problem and Vbox being solved. If only I correcty allocated by partitions beforehand!!!!

Responses

I understand this may not be a RHEL 6 but more VBox. But now I keep getting same error notice even if the machine is idle:

 

Error Type: <class 'yum.Errors.ConfigError'>Error Value: File contains no section headers

 

Will I be able to install updates. I tried that and I go the same error message.

 

Dave

 

Hi Dave.

Sorry no one's been able to help you out with this one yet! I'll follow up shortly.

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 updated my yum and I'd like to verify the kernel before doing the install.

When I enter the command:

rpm -qa kernel |sort |tail -n 1

I get:

2.6.32-358.2.1.e16.x86_64

When I enter uname -r I get

2.6.32-279.e16.x86_64

I read that values should match but they are not.

Any thought please?

 

I decided to do a fresh install of RHEL 6.

I updated my yum and I'd like to verify the kernel before doing the VirtualBox Install.s

When I enter the command:

rpm -qa kernel |sort |tail -n 1

I get:

2.6.32-358.2.1.e16.x86_64

When I enter uname -r I get

2.6.32-279.e16.x86_64

I read that values should match but they are not.

Any thoughts please? Would your fix take care of this as well?   Thanks, Dave G

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!!

It worked. The /etc/yum.repos.d/oracle.repo already existed as vim /etc/yum.repos.d/virtualbox.repo

Thanks to everyone! I really do want to be on my own two feet!!!!

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.