DKMS - RC=-1908 on Linux (Oracle 6.3)

This is for discussing general topics about how to use VirtualBox.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

That is also what I thought but when I run the command to install them this is what happens.

Code: Select all

[root@localhost trather]# yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Loaded plugins: refresh-packagekit, security
Setting up Install Process
No package dkms available.
Package binutils-2.20.51.0.2-5.34.el6.x86_64 already installed and latest version
Package gcc-4.4.6-4.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package libgomp-4.4.6-4.el6.x86_64 already installed and latest version
Package glibc-headers-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package glibc-devel-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package kernel-devel-2.6.32-279.5.2.el6.x86_64 already installed and latest version
Nothing to do
[root@localhost trather]# ^C
[root@localhost trather]# 
So I am trying to find out how to install the DKMS package. Any idea?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

Post the results of uname -r from the terminal
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

2.6.39-200.29.2.el6uek.x86_64
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

OK so you didn't add the public repo.
http://public-yum.oracle.com/
run the two lines of code then do a yum update.

Code: Select all

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
After that run the install of dkms kernel-headers kernel-devel.
You must get the headers & devel in sync with your running kernel.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

I did all that and I am still getting that "No package DKMS avaiable"

Code: Select all

cd /etc/yum.repos.d
[root@localhost yum.repos.d]# wget http://public-yum.oracle.com/public-yum-ol6.repo
--2012-08-25 20:36:59--  http://public-yum.oracle.com/public-yum-ol6.repo
Resolving public-yum.oracle.com... 141.146.44.34
Connecting to public-yum.oracle.com|141.146.44.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1707 (1.7K) [text/plain]
Saving to: “public-yum-ol6.repo.3”

100%[=============================================================>] 1,707       --.-K/s   in 0s      

2012-08-25 20:36:59 (268 MB/s) - “public-yum-ol6.repo.3” saved [1707/1707]

[root@localhost yum.repos.d]# yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Loaded plugins: refresh-packagekit, security
Setting up Install Process
No package dkms available.
Package binutils-2.20.51.0.2-5.34.el6.x86_64 already installed and latest version
Package gcc-4.4.6-4.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package libgomp-4.4.6-4.el6.x86_64 already installed and latest version
Package glibc-headers-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package glibc-devel-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package kernel-devel-2.6.32-279.5.2.el6.x86_64 already installed and latest version
Nothing to do
[root@localhost yum.repos.d]# yum update
Loaded plugins: refresh-packagekit, security
Setting up Update Process
No Packages marked for Update
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

Then see if you can manually install them
kernel-headers-$(uname -r) kernel-devel-$(uname -r)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

I just noticed that your public repo is saving as “public-yum-ol6.repo.3”
You need to make sure that it is named "public-yum-ol6.repo" sans quotes.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

I started over again with a clean install of Orcal Linux 6. I did find that an older version of YUM was installed so I removed it and did the update. I then went ahead and did the header update. Here is the information from that. I noticed that DKMS package is still missing. Before I try to insall Virtualbox I wanted to check and see if there this is good to go or do I need to install something else.

Code: Select all

[root@localhost yum.repos.d]# yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Loaded plugins: refresh-packagekit, security
Setting up Install Process
No package dkms available.
Package binutils-2.20.51.0.2-5.34.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package libgomp-4.4.6-4.el6.x86_64 already installed and latest version
Package kernel-headers is obsoleted by kernel-uek-headers, trying to install kernel-uek-headers-2.6.32-300.32.1.el6uek.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: cpp = 4.4.6-4.el6 for package: gcc-4.4.6-4.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.6-4.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.80.el6_3.4 will be installed
---> Package glibc-headers.x86_64 0:2.12-1.80.el6_3.4 will be installed
---> Package kernel-devel.x86_64 0:2.6.32-279.5.2.el6 will be installed
---> Package kernel-uek-headers.x86_64 0:2.6.32-300.32.1.el6uek will be installed
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.6-4.el6.x86_64
--> Running transaction check
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch      Version                    Repository     Size
================================================================================
Installing:
 gcc                   x86_64    4.4.6-4.el6                ol6_latest     10 M
 glibc-devel           x86_64    2.12-1.80.el6_3.4          ol6_latest    970 k
 glibc-headers         x86_64    2.12-1.80.el6_3.4          ol6_latest    600 k
 kernel-devel          x86_64    2.6.32-279.5.2.el6         ol6_latest    7.6 M
 kernel-uek-headers    x86_64    2.6.32-300.32.1.el6uek     ol6_latest    713 k
Installing for dependencies:
 cloog-ppl             x86_64    0.15.7-1.2.el6             ol6_latest     93 k
 cpp                   x86_64    4.4.6-4.el6                ol6_latest    3.7 M
 mpfr                  x86_64    2.4.1-6.el6                ol6_latest    156 k
 ppl                   x86_64    0.10.2-11.el6              ol6_latest    1.3 M

Transaction Summary
================================================================================
Install       9 Package(s)

Total download size: 25 M
Installed size: 61 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm               |  93 kB     00:00     
(2/9): cpp-4.4.6-4.el6.x86_64.rpm                        | 3.7 MB     00:03     
(3/9): gcc-4.4.6-4.el6.x86_64.rpm                        |  10 MB     00:08     
(4/9): glibc-devel-2.12-1.80.el6_3.4.x86_64.rpm          | 970 kB     00:00     
(5/9): glibc-headers-2.12-1.80.el6_3.4.x86_64.rpm        | 600 kB     00:00     
(6/9): kernel-devel-2.6.32-279.5.2.el6.x86_64.rpm        | 7.6 MB     00:06     
(7/9): kernel-uek-headers-2.6.32-300.32.1.el6uek.x86_64. | 713 kB     00:00     
(8/9): mpfr-2.4.1-6.el6.x86_64.rpm                       | 156 kB     00:00     
(9/9): ppl-0.10.2-11.el6.x86_64.rpm                      | 1.3 MB     00:01     
--------------------------------------------------------------------------------
Total                                           1.1 MB/s |  25 MB     00:23     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ppl-0.10.2-11.el6.x86_64                                     1/9 
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                              2/9 
  Installing : kernel-uek-headers-2.6.32-300.32.1.el6uek.x86_64             3/9 
  Installing : glibc-headers-2.12-1.80.el6_3.4.x86_64                       4/9 
  Installing : glibc-devel-2.12-1.80.el6_3.4.x86_64                         5/9 
  Installing : mpfr-2.4.1-6.el6.x86_64                                      6/9 
  Installing : cpp-4.4.6-4.el6.x86_64                                       7/9 
  Installing : gcc-4.4.6-4.el6.x86_64                                       8/9 
  Installing : kernel-devel-2.6.32-279.5.2.el6.x86_64                       9/9 
  Verifying  : glibc-devel-2.12-1.80.el6_3.4.x86_64                         1/9 
  Verifying  : gcc-4.4.6-4.el6.x86_64                                       2/9 
  Verifying  : kernel-devel-2.6.32-279.5.2.el6.x86_64                       3/9 
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                      4/9 
  Verifying  : glibc-headers-2.12-1.80.el6_3.4.x86_64                       5/9 
  Verifying  : kernel-uek-headers-2.6.32-300.32.1.el6uek.x86_64             6/9 
  Verifying  : cpp-4.4.6-4.el6.x86_64                                       7/9 
  Verifying  : ppl-0.10.2-11.el6.x86_64                                     8/9 
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                              9/9 

Installed:
  gcc.x86_64 0:4.4.6-4.el6                                                      
  glibc-devel.x86_64 0:2.12-1.80.el6_3.4                                        
  glibc-headers.x86_64 0:2.12-1.80.el6_3.4                                      
  kernel-devel.x86_64 0:2.6.32-279.5.2.el6                                      
  kernel-uek-headers.x86_64 0:2.6.32-300.32.1.el6uek                            

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6          cpp.x86_64 0:4.4.6-4.el6           
  mpfr.x86_64 0:2.4.1-6.el6                  ppl.x86_64 0:0.10.2-11.el6         

Complete!
[root@localhost yum.repos.d]# 
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

Here is the lated. It looks like the DKMS is installed and running. But for some reason Virtualbox drv will not find it.

Code: Select all

yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Package dkms-2.1.1.2-1.el6.rf.noarch already installed and latest version
Package binutils-2.20.51.0.2-5.34.el6.x86_64 already installed and latest version
Package gcc-4.4.6-4.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package libgomp-4.4.6-4.el6.x86_64 already installed and latest version
Package glibc-headers-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package glibc-devel-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package kernel-devel-2.6.32-279.5.2.el6.x86_64 already installed and latest version
Nothing to do
[root@localhost yum.repos.d]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules                         [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]
Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 2.6.39-200.29.2.el6uek.x86_64 cannot be found at
/lib/modules/2.6.39-200.29.2.el6uek.x86_64/build or /lib/modules/2.6.39-200.29.2.el6uek.x86_64/source.
                                                           [FAILED]
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                      [FAILED]
  (Look at /var/log/vbox-install.log to find out what went wrong)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

Error! Your kernel headers for kernel 2.6.39-200.29.2.el6uek.x86_64 cannot be found
You can install as many times as you like but the error is not going to change. You must install the headers that matches you running kernel.

Code: Select all

yum install kernel-headers-$(uname -r)
or

Code: Select all

yum install kernel-headers-2.6.39-200.29.2.el6uek.x86_64
Did you do the yum update after you installed the public-repo?
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

Yes I did do the update and it completed.

Code: Select all

 yum update
Loaded plugins: refresh-packagekit, security
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.020-127.el6 will be updated
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.052-1.el6.rf will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================
 Package                                 Arch                   Version                        Repository                Size
==============================================================================================================================
Updating:
 perl-Compress-Raw-Bzip2                 x86_64                 2.052-1.el6.rf                 rpmforge                 104 k

Transaction Summary
==============================================================================================================================
Upgrade       1 Package(s)

Total download size: 104 k
Is this ok [y/N]: y
Downloading Packages:
perl-Compress-Raw-Bzip2-2.052-1.el6.rf.x86_64.rpm                                                      | 104 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : perl-Compress-Raw-Bzip2-2.052-1.el6.rf.x86_64                                                              1/2 
  Cleanup    : perl-Compress-Raw-Bzip2-2.020-127.el6.x86_64                                                               2/2 
  Verifying  : perl-Compress-Raw-Bzip2-2.052-1.el6.rf.x86_64                                                              1/2 
  Verifying  : perl-Compress-Raw-Bzip2-2.020-127.el6.x86_64                                                               2/2 

Updated:
  perl-Compress-Raw-Bzip2.x86_64 0:2.052-1.el6.rf                                                                             

Complete!
But when I try the install the headers I get an error.

So I must be missing something and I can't seem to find out what it is.

Code: Select all

yum install kernel-headers-2.6.39-200.29.2.el6uek.x86_64
Loaded plugins: refresh-packagekit, security
Setting up Install Process
No package kernel-headers-2.6.39-200.29.2.el6uek.x86_64 available.
Error: Nothing to do
[root@localhost yum.repos.d]# yum install kernel-headers-$(uname -r)
Loaded plugins: refresh-packagekit, security
Setting up Install Process
No package kernel-headers-2.6.39-200.29.2.el6uek.x86_64 available.
Error: Nothing to do
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

post the /etc/yum.repos.d/public-yum-ol6.repo
Compress it so the file can be attached.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

Here is the file.
Attachments
public-yum-ol6.repo.tar.gz
(403 Bytes) Downloaded 35 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

Edit this file and look at the end. You need to enable the [ol6_UEK_latest] as is explained in step 3 of the link I sent you. Since you have the uek build it also needs to be enabled.

Change the enable=0 to enable=1
Then do a yum update
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

The [0l6_UEK_latest] was set to enable and that was what I thought that I was to do based on the steps that you sent. I have gone and set [ol6_UEK_base] also as enabled. I then did a YUM update. I then tried to do a Kernal and header update and a Virtualbox drv update and the results are below. It is still failing.

Code: Select all

yum update
Loaded plugins: refresh-packagekit, security
ol6_UEK_base                                             |  951 B     00:00     
ol6_UEK_base/primary                                     | 686 kB     00:00     
ol6_UEK_base                                                              29/29
ol6_UEK_latest                                           | 1.2 kB     00:00     
ol6_latest                                               | 1.4 kB     00:00     
Setting up Update Process
No Packages marked for Update
[root@localhost trather]# yum install kernel-headers-2.6.39-200.29.2.el6uek.x86_64
Loaded plugins: refresh-packagekit, security
Setting up Install Process
No package kernel-headers-2.6.39-200.29.2.el6uek.x86_64 available.
Error: Nothing to do
[root@localhost trather]# yum install kernel-headers-$(uname -r)
Loaded plugins: refresh-packagekit, security
Setting up Install Process
No package kernel-headers-2.6.39-200.29.2.el6uek.x86_64 available.
Error: Nothing to do
[root@localhost trather]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules                         [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]
Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 2.6.39-200.29.2.el6uek.x86_64 cannot be found at
/lib/modules/2.6.39-200.29.2.el6uek.x86_64/build or /lib/modules/2.6.39-200.29.2.el6uek.x86_64/source.
                                                           [FAILED]
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                      [FAILED]
  (Look at /var/log/vbox-install.log to find out what went wrong)
[root@localhost trather]# yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Package dkms-2.1.1.2-1.el6.rf.noarch already installed and latest version
Package binutils-2.20.51.0.2-5.34.el6.x86_64 already installed and latest version
Package gcc-4.4.6-4.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package patch-2.6-6.el6.x86_64 already installed and latest version
Package libgomp-4.4.6-4.el6.x86_64 already installed and latest version
Package glibc-headers-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package glibc-devel-2.12-1.80.el6_3.4.x86_64 already installed and latest version
Package kernel-devel-2.6.32-279.5.2.el6.x86_64 already installed and latest version
Nothing to do
Post Reply