How do I install virtualbox-dkms?“Failed to start LSB: VirtualBox Linux kernel module”reconfiguration...

Pre-mixing cryogenic fuels and using only one fuel tank

Does the reader need to like the PoV character?

The Digit Triangles

Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

What fields between the rationals and the reals allow a good notion of 2D distance?

Giving feedback to someone without sounding prejudiced

Taxes on Dividends in a Roth IRA

How could a planet have erratic days?

Non-trope happy ending?

Why do Radio Buttons not fill the entire outer circle?

A variation to the phrase "hanging over my shoulders"

What is the English pronunciation of "pain au chocolat"?

How can I write humor as character trait?

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

How do you make your own symbol when Detexify fails?

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

Why does Carol not get rid of the Kree symbol on her suit when she changes its colours?

Can I cause damage to electrical appliances by unplugging them when they are turned on?

Can I say "fingers" when referring to toes?

Is there a RAID 0 Equivalent for RAM?

How to preserve electronics (computers, iPads and phones) for hundreds of years

What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?

Creating two special characters



How do I install virtualbox-dkms?


“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













20















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 tried installing the linux-source package, but not sure how ubuntu handles kernel sources and headers. Any ideas on how to do this from an Ubuntu standpoint?










share|improve this question





























    20















    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 tried installing the linux-source package, but not sure how ubuntu handles kernel sources and headers. Any ideas on how to do this from an Ubuntu standpoint?










    share|improve this question



























      20












      20








      20


      7






      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 tried installing the linux-source package, but not sure how ubuntu handles kernel sources and headers. Any ideas on how to do this from an Ubuntu standpoint?










      share|improve this question
















      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 tried installing the linux-source package, but 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 Oct 20 '12 at 16:25









      Jorge Castro

      37k106422617




      37k106422617










      asked Oct 20 '12 at 14:24









      Bill DenglerBill Dengler

      101113




      101113






















          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
            8 mins 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

























                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-virtualbox-dkms%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
                  8 mins 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
                  8 mins 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
                  8 mins 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
                  8 mins 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
                8 mins ago





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

                – earthmeLon
                8 mins 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






























                                  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




























                                    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















                                    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













                                    share


                                    share








                                    edited 2 mins ago

























                                    answered 9 mins 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-virtualbox-dkms%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...