How do I install the virtualbox-dkms package?“Failed to start LSB: VirtualBox Linux kernel...

What (the heck) is a Super Worm Equinox Moon?

Multiplicative persistence

"It doesn't matter" or "it won't matter"?

How do you make your own symbol when Detexify fails?

Microchip documentation does not label CAN buss pins on micro controller pinout diagram

Will number of steps recorded on FitBit/any fitness tracker add up distance in PokemonGo?

Creating two special characters

What kind of floor tile is this?

Why do ¬, ∀ and ∃ have the same precedence?

What to do when eye contact makes your coworker uncomfortable?

Does the reader need to like the PoV character?

Biological Blimps: Propulsion

Can a stoichiometric mixture of oxygen and methane exist as a liquid at standard pressure and some (low) temperature?

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

How does electrical safety system work on ISS?

Short story about a deaf man, who cuts people tongues

Can you use Vicious Mockery to win an argument or gain favours?

What is going on with gets(stdin) on the site coderbyte?

Does Doodling or Improvising on the Piano Have Any Benefits?

It grows, but water kills it

What does Apple's new App Store requirement mean

Is this part of the description of the Archfey warlock's Misty Escape feature redundant?

Why is the Sun approximated as a black body at ~ 5800 K?

Were Persian-Median kings illiterate?



How do I install the virtualbox-dkms package?


“Failed to start LSB: VirtualBox Linux kernel module”reconfiguration issues with dpkgCan't make machines in VirtualBoxVirtualbox , Ubuntu 11.10 , linux-kernel 3: cannot start virtual machineUnable to install VirtualBox on Ubuntu 12.10: Kernel headers cannot be foundVirtualBox - Error not suplibOsinitCannot start virtualbox VM's: Kernel driver is not installedInstalling ndiswrapper-dkms on ubuntu 12.04AMD legacy driver installation failed due to missing kernel headersVirtualBox error kernel headersVirtualBox not installing on Ubuntu 14.04 LTScan't install Realtek RTL8723de on ubuntu 16.04 kernel 4.15Updated to 4.15.0-29.31 Ubuntu 18.04, and my wifi and ethernet stopped working













21















I am getting the following error when attempting to install the VirtualBox kernel modules :



------------------------------
Deleting module version: 4.1.18
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-4.1.18 DKMS files...
Building only for 3.5.0-17-generic
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.


I have tried installing the linux-source package, but I am not sure how Ubuntu handles kernel sources and headers.



Any ideas on how to do this from an Ubuntu standpoint?










share|improve this question





























    21















    I am getting the following error when attempting to install the VirtualBox kernel modules :



    ------------------------------
    Deleting module version: 4.1.18
    completely from the DKMS tree.
    ------------------------------
    Done.
    Loading new virtualbox-4.1.18 DKMS files...
    Building only for 3.5.0-17-generic
    Module build for the currently running kernel was skipped since the
    kernel source for this kernel does not seem to be installed.


    I have tried installing the linux-source package, but I am not sure how Ubuntu handles kernel sources and headers.



    Any ideas on how to do this from an Ubuntu standpoint?










    share|improve this question



























      21












      21








      21


      7






      I am getting the following error when attempting to install the VirtualBox kernel modules :



      ------------------------------
      Deleting module version: 4.1.18
      completely from the DKMS tree.
      ------------------------------
      Done.
      Loading new virtualbox-4.1.18 DKMS files...
      Building only for 3.5.0-17-generic
      Module build for the currently running kernel was skipped since the
      kernel source for this kernel does not seem to be installed.


      I have tried installing the linux-source package, but I am not sure how Ubuntu handles kernel sources and headers.



      Any ideas on how to do this from an Ubuntu standpoint?










      share|improve this question
















      I am getting the following error when attempting to install the VirtualBox kernel modules :



      ------------------------------
      Deleting module version: 4.1.18
      completely from the DKMS tree.
      ------------------------------
      Done.
      Loading new virtualbox-4.1.18 DKMS files...
      Building only for 3.5.0-17-generic
      Module build for the currently running kernel was skipped since the
      kernel source for this kernel does not seem to be installed.


      I have tried installing the linux-source package, but I am not sure how Ubuntu handles kernel sources and headers.



      Any ideas on how to do this from an Ubuntu standpoint?







      kernel virtualbox






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 mins ago









      Kevin Bowen

      14.7k155970




      14.7k155970










      asked Oct 20 '12 at 14:24









      Bill DenglerBill Dengler

      106113




      106113






















          5 Answers
          5






          active

          oldest

          votes


















          14














          My Virtual Box told me that the kernel drivers were not installed. I ran



          sudo apt-get remove virtualbox-dkms   


          to remove the drivers and then re-installed them



          sudo apt-get install virtualbox-dkms 


          which rebuilt the drivers and I was able to run virtualbox with no problems






          share|improve this answer





















          • 1





            Or using --reinstall option: sudo apt install --reinstall virtualbox-dkms

            – visoft
            Feb 25 '18 at 10:08



















          11














          An other way:



          apt-get install linux-headers-`uname -r`
          dpkg-reconfigure virtualbox-dkms


          The normal way:



          /etc/init.d/vboxdrv setup





          share|improve this answer





















          • 1





            Wonder why “an other way” is mentioned before the “normal” one. However, dpkg-reconfigure seems to be the right option.

            – Melebius
            Oct 5 '16 at 12:17






          • 1





            To add to this, I found the following sequence worked when I unpgraded to 16.04: sudo apt-get install linux-headers-`uname -r` then sudo dpkg-reconfigure virtualbox-dkms and finally sudo dpkg-reconfigure virtualbox

            – Dave
            Feb 20 '17 at 13:48











          • This will put you in the OPs situation (again) each kernel update.

            – earthmeLon
            3 hours ago



















          5














          You need the kernel header as well. Based on your output, sudo apt-get install kernel-headers-3.5.0-17-generic should do it. On the guest VM, either autorun the ISO image or sudo sh ./VBoxLinuxAdditions.run from the shell prompt should work. Appears this is a known problem with the latest 12.10 release.






          share|improve this answer































            2














            Didn't work for me. Solved it by running:



            gksudo synaptic


            Search for 'dkms' and (re)install the one for VirtualBox and press the 'Apply' button. The output should say that virtualbox kernel drivers are up and running.






            share|improve this answer

































              0














              This is caused by the kernel headers not being available. These headers are not typically required, but help other applications need them to build kernel modules to keep in sync with your distribution and the version you are using.



              You can install specific headers, or you can install 'generic', or 'current':



              sudo apt install linux-headers-generic


              This will ensure that when you take in new kernels, the headers of those kernels are also installed. When you update your kernel, VirtualBox will be able to update itself with the newest, matching headers. Sometimes these can be found by other names, such as linux-headers-amd64, in other distributions.



              After you have the headers, you can purge/re-install VirtualBox, or have VirtualBox rebuild the modules and complete the setup:



              sudo dpkg-reconfigure virtualbox-dkms  
              sudo modprobe vboxdrv





              share|improve this answer

























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "89"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f203586%2fhow-do-i-install-the-virtualbox-dkms-package%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                5 Answers
                5






                active

                oldest

                votes








                5 Answers
                5






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                14














                My Virtual Box told me that the kernel drivers were not installed. I ran



                sudo apt-get remove virtualbox-dkms   


                to remove the drivers and then re-installed them



                sudo apt-get install virtualbox-dkms 


                which rebuilt the drivers and I was able to run virtualbox with no problems






                share|improve this answer





















                • 1





                  Or using --reinstall option: sudo apt install --reinstall virtualbox-dkms

                  – visoft
                  Feb 25 '18 at 10:08
















                14














                My Virtual Box told me that the kernel drivers were not installed. I ran



                sudo apt-get remove virtualbox-dkms   


                to remove the drivers and then re-installed them



                sudo apt-get install virtualbox-dkms 


                which rebuilt the drivers and I was able to run virtualbox with no problems






                share|improve this answer





















                • 1





                  Or using --reinstall option: sudo apt install --reinstall virtualbox-dkms

                  – visoft
                  Feb 25 '18 at 10:08














                14












                14








                14







                My Virtual Box told me that the kernel drivers were not installed. I ran



                sudo apt-get remove virtualbox-dkms   


                to remove the drivers and then re-installed them



                sudo apt-get install virtualbox-dkms 


                which rebuilt the drivers and I was able to run virtualbox with no problems






                share|improve this answer















                My Virtual Box told me that the kernel drivers were not installed. I ran



                sudo apt-get remove virtualbox-dkms   


                to remove the drivers and then re-installed them



                sudo apt-get install virtualbox-dkms 


                which rebuilt the drivers and I was able to run virtualbox with no problems







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 23 '18 at 10:32









                abu_bua

                3,98181430




                3,98181430










                answered Oct 21 '12 at 19:37









                KevinKevin

                1412




                1412








                • 1





                  Or using --reinstall option: sudo apt install --reinstall virtualbox-dkms

                  – visoft
                  Feb 25 '18 at 10:08














                • 1





                  Or using --reinstall option: sudo apt install --reinstall virtualbox-dkms

                  – visoft
                  Feb 25 '18 at 10:08








                1




                1





                Or using --reinstall option: sudo apt install --reinstall virtualbox-dkms

                – visoft
                Feb 25 '18 at 10:08





                Or using --reinstall option: sudo apt install --reinstall virtualbox-dkms

                – visoft
                Feb 25 '18 at 10:08













                11














                An other way:



                apt-get install linux-headers-`uname -r`
                dpkg-reconfigure virtualbox-dkms


                The normal way:



                /etc/init.d/vboxdrv setup





                share|improve this answer





















                • 1





                  Wonder why “an other way” is mentioned before the “normal” one. However, dpkg-reconfigure seems to be the right option.

                  – Melebius
                  Oct 5 '16 at 12:17






                • 1





                  To add to this, I found the following sequence worked when I unpgraded to 16.04: sudo apt-get install linux-headers-`uname -r` then sudo dpkg-reconfigure virtualbox-dkms and finally sudo dpkg-reconfigure virtualbox

                  – Dave
                  Feb 20 '17 at 13:48











                • This will put you in the OPs situation (again) each kernel update.

                  – earthmeLon
                  3 hours ago
















                11














                An other way:



                apt-get install linux-headers-`uname -r`
                dpkg-reconfigure virtualbox-dkms


                The normal way:



                /etc/init.d/vboxdrv setup





                share|improve this answer





















                • 1





                  Wonder why “an other way” is mentioned before the “normal” one. However, dpkg-reconfigure seems to be the right option.

                  – Melebius
                  Oct 5 '16 at 12:17






                • 1





                  To add to this, I found the following sequence worked when I unpgraded to 16.04: sudo apt-get install linux-headers-`uname -r` then sudo dpkg-reconfigure virtualbox-dkms and finally sudo dpkg-reconfigure virtualbox

                  – Dave
                  Feb 20 '17 at 13:48











                • This will put you in the OPs situation (again) each kernel update.

                  – earthmeLon
                  3 hours ago














                11












                11








                11







                An other way:



                apt-get install linux-headers-`uname -r`
                dpkg-reconfigure virtualbox-dkms


                The normal way:



                /etc/init.d/vboxdrv setup





                share|improve this answer















                An other way:



                apt-get install linux-headers-`uname -r`
                dpkg-reconfigure virtualbox-dkms


                The normal way:



                /etc/init.d/vboxdrv setup






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 5 '17 at 21:41









                Kenny Loveall

                134




                134










                answered May 4 '13 at 10:55









                Marc QuintonMarc Quinton

                12713




                12713








                • 1





                  Wonder why “an other way” is mentioned before the “normal” one. However, dpkg-reconfigure seems to be the right option.

                  – Melebius
                  Oct 5 '16 at 12:17






                • 1





                  To add to this, I found the following sequence worked when I unpgraded to 16.04: sudo apt-get install linux-headers-`uname -r` then sudo dpkg-reconfigure virtualbox-dkms and finally sudo dpkg-reconfigure virtualbox

                  – Dave
                  Feb 20 '17 at 13:48











                • This will put you in the OPs situation (again) each kernel update.

                  – earthmeLon
                  3 hours ago














                • 1





                  Wonder why “an other way” is mentioned before the “normal” one. However, dpkg-reconfigure seems to be the right option.

                  – Melebius
                  Oct 5 '16 at 12:17






                • 1





                  To add to this, I found the following sequence worked when I unpgraded to 16.04: sudo apt-get install linux-headers-`uname -r` then sudo dpkg-reconfigure virtualbox-dkms and finally sudo dpkg-reconfigure virtualbox

                  – Dave
                  Feb 20 '17 at 13:48











                • This will put you in the OPs situation (again) each kernel update.

                  – earthmeLon
                  3 hours ago








                1




                1





                Wonder why “an other way” is mentioned before the “normal” one. However, dpkg-reconfigure seems to be the right option.

                – Melebius
                Oct 5 '16 at 12:17





                Wonder why “an other way” is mentioned before the “normal” one. However, dpkg-reconfigure seems to be the right option.

                – Melebius
                Oct 5 '16 at 12:17




                1




                1





                To add to this, I found the following sequence worked when I unpgraded to 16.04: sudo apt-get install linux-headers-`uname -r` then sudo dpkg-reconfigure virtualbox-dkms and finally sudo dpkg-reconfigure virtualbox

                – Dave
                Feb 20 '17 at 13:48





                To add to this, I found the following sequence worked when I unpgraded to 16.04: sudo apt-get install linux-headers-`uname -r` then sudo dpkg-reconfigure virtualbox-dkms and finally sudo dpkg-reconfigure virtualbox

                – Dave
                Feb 20 '17 at 13:48













                This will put you in the OPs situation (again) each kernel update.

                – earthmeLon
                3 hours ago





                This will put you in the OPs situation (again) each kernel update.

                – earthmeLon
                3 hours ago











                5














                You need the kernel header as well. Based on your output, sudo apt-get install kernel-headers-3.5.0-17-generic should do it. On the guest VM, either autorun the ISO image or sudo sh ./VBoxLinuxAdditions.run from the shell prompt should work. Appears this is a known problem with the latest 12.10 release.






                share|improve this answer




























                  5














                  You need the kernel header as well. Based on your output, sudo apt-get install kernel-headers-3.5.0-17-generic should do it. On the guest VM, either autorun the ISO image or sudo sh ./VBoxLinuxAdditions.run from the shell prompt should work. Appears this is a known problem with the latest 12.10 release.






                  share|improve this answer


























                    5












                    5








                    5







                    You need the kernel header as well. Based on your output, sudo apt-get install kernel-headers-3.5.0-17-generic should do it. On the guest VM, either autorun the ISO image or sudo sh ./VBoxLinuxAdditions.run from the shell prompt should work. Appears this is a known problem with the latest 12.10 release.






                    share|improve this answer













                    You need the kernel header as well. Based on your output, sudo apt-get install kernel-headers-3.5.0-17-generic should do it. On the guest VM, either autorun the ISO image or sudo sh ./VBoxLinuxAdditions.run from the shell prompt should work. Appears this is a known problem with the latest 12.10 release.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 21 '12 at 18:50









                    cogitoergosumcogitoergosum

                    33113




                    33113























                        2














                        Didn't work for me. Solved it by running:



                        gksudo synaptic


                        Search for 'dkms' and (re)install the one for VirtualBox and press the 'Apply' button. The output should say that virtualbox kernel drivers are up and running.






                        share|improve this answer






























                          2














                          Didn't work for me. Solved it by running:



                          gksudo synaptic


                          Search for 'dkms' and (re)install the one for VirtualBox and press the 'Apply' button. The output should say that virtualbox kernel drivers are up and running.






                          share|improve this answer




























                            2












                            2








                            2







                            Didn't work for me. Solved it by running:



                            gksudo synaptic


                            Search for 'dkms' and (re)install the one for VirtualBox and press the 'Apply' button. The output should say that virtualbox kernel drivers are up and running.






                            share|improve this answer















                            Didn't work for me. Solved it by running:



                            gksudo synaptic


                            Search for 'dkms' and (re)install the one for VirtualBox and press the 'Apply' button. The output should say that virtualbox kernel drivers are up and running.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jul 17 '15 at 0:36









                            simplify

                            74




                            74










                            answered Dec 18 '12 at 20:25









                            Donald DominkoDonald Dominko

                            211




                            211























                                0














                                This is caused by the kernel headers not being available. These headers are not typically required, but help other applications need them to build kernel modules to keep in sync with your distribution and the version you are using.



                                You can install specific headers, or you can install 'generic', or 'current':



                                sudo apt install linux-headers-generic


                                This will ensure that when you take in new kernels, the headers of those kernels are also installed. When you update your kernel, VirtualBox will be able to update itself with the newest, matching headers. Sometimes these can be found by other names, such as linux-headers-amd64, in other distributions.



                                After you have the headers, you can purge/re-install VirtualBox, or have VirtualBox rebuild the modules and complete the setup:



                                sudo dpkg-reconfigure virtualbox-dkms  
                                sudo modprobe vboxdrv





                                share|improve this answer






























                                  0














                                  This is caused by the kernel headers not being available. These headers are not typically required, but help other applications need them to build kernel modules to keep in sync with your distribution and the version you are using.



                                  You can install specific headers, or you can install 'generic', or 'current':



                                  sudo apt install linux-headers-generic


                                  This will ensure that when you take in new kernels, the headers of those kernels are also installed. When you update your kernel, VirtualBox will be able to update itself with the newest, matching headers. Sometimes these can be found by other names, such as linux-headers-amd64, in other distributions.



                                  After you have the headers, you can purge/re-install VirtualBox, or have VirtualBox rebuild the modules and complete the setup:



                                  sudo dpkg-reconfigure virtualbox-dkms  
                                  sudo modprobe vboxdrv





                                  share|improve this answer




























                                    0












                                    0








                                    0







                                    This is caused by the kernel headers not being available. These headers are not typically required, but help other applications need them to build kernel modules to keep in sync with your distribution and the version you are using.



                                    You can install specific headers, or you can install 'generic', or 'current':



                                    sudo apt install linux-headers-generic


                                    This will ensure that when you take in new kernels, the headers of those kernels are also installed. When you update your kernel, VirtualBox will be able to update itself with the newest, matching headers. Sometimes these can be found by other names, such as linux-headers-amd64, in other distributions.



                                    After you have the headers, you can purge/re-install VirtualBox, or have VirtualBox rebuild the modules and complete the setup:



                                    sudo dpkg-reconfigure virtualbox-dkms  
                                    sudo modprobe vboxdrv





                                    share|improve this answer















                                    This is caused by the kernel headers not being available. These headers are not typically required, but help other applications need them to build kernel modules to keep in sync with your distribution and the version you are using.



                                    You can install specific headers, or you can install 'generic', or 'current':



                                    sudo apt install linux-headers-generic


                                    This will ensure that when you take in new kernels, the headers of those kernels are also installed. When you update your kernel, VirtualBox will be able to update itself with the newest, matching headers. Sometimes these can be found by other names, such as linux-headers-amd64, in other distributions.



                                    After you have the headers, you can purge/re-install VirtualBox, or have VirtualBox rebuild the modules and complete the setup:



                                    sudo dpkg-reconfigure virtualbox-dkms  
                                    sudo modprobe vboxdrv






                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited 3 hours ago

























                                    answered 3 hours ago









                                    earthmeLonearthmeLon

                                    6,4331851




                                    6,4331851






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Ask Ubuntu!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f203586%2fhow-do-i-install-the-virtualbox-dkms-package%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                                        Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                                        Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...