install Nvidia drivers ubuntu 18.04 with secure boot












0















Yesterday, I tried to upgrade my version of ubuntu from 17.10 to 18.04 LTS. Globally, the update has been achieved correctly except for some elements.



One of these elements is the installation of Nvidia drivers with secure boot.
I tried several things to install nvidia drivers (version 396) with secure boot but it seems that it is not working at the moment...



Finally,I found the solution to overcome this problem. I disabled the secure boot but it is just a trick to solve the problem of the nvidia driver installation...



So my question is: "is it possible to have nvidia drivers working with secure boot?".



The procedure that I used when secure boot is activated (Which does not work):



Commands used for the installation:




sudo apt update



sudo apt upgrade



sudo ubuntu-drivers autoinstall




During the installation process when secure boot is enabled the installation phase is stuck with MOK private key. a trick to overcome that is explained here https://devtalk.nvidia.com/default/topic/1036167/stuck-trying-to-intall-nvidia-390-ubuntu-18-04-lts-/?offset=3



But for me, the solution does not work. So I need to interrupt the script and run the update & software application. After a while, a dialogue box appears asking me a password for MOK key.



So I fulfil the dialogue box and reboot the PC but when secure boot is enabled, the x server settings is still empty.



Thanks in advance for your answers.










share|improve this question

























  • Do you really think that disabling SB is needed only to INSTALL the drivers? The Nvidia proprietary module won't work with SB enabled.

    – Pilot6
    Jun 20 '18 at 9:10











  • Just by disabling SB it is working so yes by simply disabling SB is working but without doing that it does not work. And what is the reason why Nvidia proprietary module does not work with SB ?

    – Loic L.
    Jun 20 '18 at 9:17






  • 1





    The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also askubuntu.com/questions/762254/…

    – Pilot6
    Jun 20 '18 at 9:36











  • thanks for your answer :). Well normally, as you said in the post that your linked. Mok utils should overcome the problem of SB. And I think that the installation tried to achieve when you run ubuntu-drivers autoinstall but in my case it does not work. But never mind, I have the nvidia driver installed so everything goes well.

    – Loic L.
    Jun 20 '18 at 10:01













  • It is correct. ubuntu-drivers tries to disable SB, but it is much easier to disable it in BIOS. You can try to sign the driver, but it is not worth the effort IMHO.

    – Pilot6
    Jun 20 '18 at 14:18
















0















Yesterday, I tried to upgrade my version of ubuntu from 17.10 to 18.04 LTS. Globally, the update has been achieved correctly except for some elements.



One of these elements is the installation of Nvidia drivers with secure boot.
I tried several things to install nvidia drivers (version 396) with secure boot but it seems that it is not working at the moment...



Finally,I found the solution to overcome this problem. I disabled the secure boot but it is just a trick to solve the problem of the nvidia driver installation...



So my question is: "is it possible to have nvidia drivers working with secure boot?".



The procedure that I used when secure boot is activated (Which does not work):



Commands used for the installation:




sudo apt update



sudo apt upgrade



sudo ubuntu-drivers autoinstall




During the installation process when secure boot is enabled the installation phase is stuck with MOK private key. a trick to overcome that is explained here https://devtalk.nvidia.com/default/topic/1036167/stuck-trying-to-intall-nvidia-390-ubuntu-18-04-lts-/?offset=3



But for me, the solution does not work. So I need to interrupt the script and run the update & software application. After a while, a dialogue box appears asking me a password for MOK key.



So I fulfil the dialogue box and reboot the PC but when secure boot is enabled, the x server settings is still empty.



Thanks in advance for your answers.










share|improve this question

























  • Do you really think that disabling SB is needed only to INSTALL the drivers? The Nvidia proprietary module won't work with SB enabled.

    – Pilot6
    Jun 20 '18 at 9:10











  • Just by disabling SB it is working so yes by simply disabling SB is working but without doing that it does not work. And what is the reason why Nvidia proprietary module does not work with SB ?

    – Loic L.
    Jun 20 '18 at 9:17






  • 1





    The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also askubuntu.com/questions/762254/…

    – Pilot6
    Jun 20 '18 at 9:36











  • thanks for your answer :). Well normally, as you said in the post that your linked. Mok utils should overcome the problem of SB. And I think that the installation tried to achieve when you run ubuntu-drivers autoinstall but in my case it does not work. But never mind, I have the nvidia driver installed so everything goes well.

    – Loic L.
    Jun 20 '18 at 10:01













  • It is correct. ubuntu-drivers tries to disable SB, but it is much easier to disable it in BIOS. You can try to sign the driver, but it is not worth the effort IMHO.

    – Pilot6
    Jun 20 '18 at 14:18














0












0








0








Yesterday, I tried to upgrade my version of ubuntu from 17.10 to 18.04 LTS. Globally, the update has been achieved correctly except for some elements.



One of these elements is the installation of Nvidia drivers with secure boot.
I tried several things to install nvidia drivers (version 396) with secure boot but it seems that it is not working at the moment...



Finally,I found the solution to overcome this problem. I disabled the secure boot but it is just a trick to solve the problem of the nvidia driver installation...



So my question is: "is it possible to have nvidia drivers working with secure boot?".



The procedure that I used when secure boot is activated (Which does not work):



Commands used for the installation:




sudo apt update



sudo apt upgrade



sudo ubuntu-drivers autoinstall




During the installation process when secure boot is enabled the installation phase is stuck with MOK private key. a trick to overcome that is explained here https://devtalk.nvidia.com/default/topic/1036167/stuck-trying-to-intall-nvidia-390-ubuntu-18-04-lts-/?offset=3



But for me, the solution does not work. So I need to interrupt the script and run the update & software application. After a while, a dialogue box appears asking me a password for MOK key.



So I fulfil the dialogue box and reboot the PC but when secure boot is enabled, the x server settings is still empty.



Thanks in advance for your answers.










share|improve this question
















Yesterday, I tried to upgrade my version of ubuntu from 17.10 to 18.04 LTS. Globally, the update has been achieved correctly except for some elements.



One of these elements is the installation of Nvidia drivers with secure boot.
I tried several things to install nvidia drivers (version 396) with secure boot but it seems that it is not working at the moment...



Finally,I found the solution to overcome this problem. I disabled the secure boot but it is just a trick to solve the problem of the nvidia driver installation...



So my question is: "is it possible to have nvidia drivers working with secure boot?".



The procedure that I used when secure boot is activated (Which does not work):



Commands used for the installation:




sudo apt update



sudo apt upgrade



sudo ubuntu-drivers autoinstall




During the installation process when secure boot is enabled the installation phase is stuck with MOK private key. a trick to overcome that is explained here https://devtalk.nvidia.com/default/topic/1036167/stuck-trying-to-intall-nvidia-390-ubuntu-18-04-lts-/?offset=3



But for me, the solution does not work. So I need to interrupt the script and run the update & software application. After a while, a dialogue box appears asking me a password for MOK key.



So I fulfil the dialogue box and reboot the PC but when secure boot is enabled, the x server settings is still empty.



Thanks in advance for your answers.







boot drivers nvidia






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 20 '18 at 9:07







Loic L.

















asked Jun 20 '18 at 8:59









Loic L.Loic L.

5616




5616













  • Do you really think that disabling SB is needed only to INSTALL the drivers? The Nvidia proprietary module won't work with SB enabled.

    – Pilot6
    Jun 20 '18 at 9:10











  • Just by disabling SB it is working so yes by simply disabling SB is working but without doing that it does not work. And what is the reason why Nvidia proprietary module does not work with SB ?

    – Loic L.
    Jun 20 '18 at 9:17






  • 1





    The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also askubuntu.com/questions/762254/…

    – Pilot6
    Jun 20 '18 at 9:36











  • thanks for your answer :). Well normally, as you said in the post that your linked. Mok utils should overcome the problem of SB. And I think that the installation tried to achieve when you run ubuntu-drivers autoinstall but in my case it does not work. But never mind, I have the nvidia driver installed so everything goes well.

    – Loic L.
    Jun 20 '18 at 10:01













  • It is correct. ubuntu-drivers tries to disable SB, but it is much easier to disable it in BIOS. You can try to sign the driver, but it is not worth the effort IMHO.

    – Pilot6
    Jun 20 '18 at 14:18



















  • Do you really think that disabling SB is needed only to INSTALL the drivers? The Nvidia proprietary module won't work with SB enabled.

    – Pilot6
    Jun 20 '18 at 9:10











  • Just by disabling SB it is working so yes by simply disabling SB is working but without doing that it does not work. And what is the reason why Nvidia proprietary module does not work with SB ?

    – Loic L.
    Jun 20 '18 at 9:17






  • 1





    The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also askubuntu.com/questions/762254/…

    – Pilot6
    Jun 20 '18 at 9:36











  • thanks for your answer :). Well normally, as you said in the post that your linked. Mok utils should overcome the problem of SB. And I think that the installation tried to achieve when you run ubuntu-drivers autoinstall but in my case it does not work. But never mind, I have the nvidia driver installed so everything goes well.

    – Loic L.
    Jun 20 '18 at 10:01













  • It is correct. ubuntu-drivers tries to disable SB, but it is much easier to disable it in BIOS. You can try to sign the driver, but it is not worth the effort IMHO.

    – Pilot6
    Jun 20 '18 at 14:18

















Do you really think that disabling SB is needed only to INSTALL the drivers? The Nvidia proprietary module won't work with SB enabled.

– Pilot6
Jun 20 '18 at 9:10





Do you really think that disabling SB is needed only to INSTALL the drivers? The Nvidia proprietary module won't work with SB enabled.

– Pilot6
Jun 20 '18 at 9:10













Just by disabling SB it is working so yes by simply disabling SB is working but without doing that it does not work. And what is the reason why Nvidia proprietary module does not work with SB ?

– Loic L.
Jun 20 '18 at 9:17





Just by disabling SB it is working so yes by simply disabling SB is working but without doing that it does not work. And what is the reason why Nvidia proprietary module does not work with SB ?

– Loic L.
Jun 20 '18 at 9:17




1




1





The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also askubuntu.com/questions/762254/…

– Pilot6
Jun 20 '18 at 9:36





The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also askubuntu.com/questions/762254/…

– Pilot6
Jun 20 '18 at 9:36













thanks for your answer :). Well normally, as you said in the post that your linked. Mok utils should overcome the problem of SB. And I think that the installation tried to achieve when you run ubuntu-drivers autoinstall but in my case it does not work. But never mind, I have the nvidia driver installed so everything goes well.

– Loic L.
Jun 20 '18 at 10:01







thanks for your answer :). Well normally, as you said in the post that your linked. Mok utils should overcome the problem of SB. And I think that the installation tried to achieve when you run ubuntu-drivers autoinstall but in my case it does not work. But never mind, I have the nvidia driver installed so everything goes well.

– Loic L.
Jun 20 '18 at 10:01















It is correct. ubuntu-drivers tries to disable SB, but it is much easier to disable it in BIOS. You can try to sign the driver, but it is not worth the effort IMHO.

– Pilot6
Jun 20 '18 at 14:18





It is correct. ubuntu-drivers tries to disable SB, but it is much easier to disable it in BIOS. You can try to sign the driver, but it is not worth the effort IMHO.

– Pilot6
Jun 20 '18 at 14:18










2 Answers
2






active

oldest

votes


















1














My steps to make it work with secure boot were as follows:



When i was installing Ubuntu 18.04.1, when i reached the "updates and other software stage" in the installation, there was an option to set a password for secure boot, so i went ahead and enabled the check box and entered a new password for secure boot,



Later on after the installation, when i wanted to install Nvidia drivers, i did the following:



//standard ubuntu procedure:



Sudo apt-get update
Sudo apt-get upgrade


//Step 1: add the Official Nvidia PPA to Ubuntu



sudo add-apt-repository ppa:graphics-drivers/ppa


//Step 2: Update and upgrade again



Sudo apt-get update
Sudo apt-get upgrade


//Step 3: I checked which was the recommended driver for my GPU via the command:



ubuntu-drivers devices


//Step 4: I opened "Software & Updates" and clicked the "Additional Drivers" tab, I then chose the recommended driver and clicked "Apply Changes", while the driver was installing somewhere in the middle it promped me for secure boot password, that it when i entered the password i set up when i was installing ubuntu, after it finished applying i restarted my device, when it was rebooting a blue menu appeared asking to press any key, i pressed then a menu labeled as "Perform MOK Management" appeared, there were the following four options:




  1. Continue boot

  2. Enroll Key

  3. Enroll Key from Disk

  4. Enroll Key from Hash


I chose option number 2, then i continued to boot, it finally worked, I went to Ubuntu settings->Details and my Graphic Card name was Shown correctly.






share|improve this answer































    0














    Thanks @Pilot6.



    For the explanation that you gave in comments section.



    Answer:



    The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also: Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?






    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%2f1048135%2finstall-nvidia-drivers-ubuntu-18-04-with-secure-boot%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      My steps to make it work with secure boot were as follows:



      When i was installing Ubuntu 18.04.1, when i reached the "updates and other software stage" in the installation, there was an option to set a password for secure boot, so i went ahead and enabled the check box and entered a new password for secure boot,



      Later on after the installation, when i wanted to install Nvidia drivers, i did the following:



      //standard ubuntu procedure:



      Sudo apt-get update
      Sudo apt-get upgrade


      //Step 1: add the Official Nvidia PPA to Ubuntu



      sudo add-apt-repository ppa:graphics-drivers/ppa


      //Step 2: Update and upgrade again



      Sudo apt-get update
      Sudo apt-get upgrade


      //Step 3: I checked which was the recommended driver for my GPU via the command:



      ubuntu-drivers devices


      //Step 4: I opened "Software & Updates" and clicked the "Additional Drivers" tab, I then chose the recommended driver and clicked "Apply Changes", while the driver was installing somewhere in the middle it promped me for secure boot password, that it when i entered the password i set up when i was installing ubuntu, after it finished applying i restarted my device, when it was rebooting a blue menu appeared asking to press any key, i pressed then a menu labeled as "Perform MOK Management" appeared, there were the following four options:




      1. Continue boot

      2. Enroll Key

      3. Enroll Key from Disk

      4. Enroll Key from Hash


      I chose option number 2, then i continued to boot, it finally worked, I went to Ubuntu settings->Details and my Graphic Card name was Shown correctly.






      share|improve this answer




























        1














        My steps to make it work with secure boot were as follows:



        When i was installing Ubuntu 18.04.1, when i reached the "updates and other software stage" in the installation, there was an option to set a password for secure boot, so i went ahead and enabled the check box and entered a new password for secure boot,



        Later on after the installation, when i wanted to install Nvidia drivers, i did the following:



        //standard ubuntu procedure:



        Sudo apt-get update
        Sudo apt-get upgrade


        //Step 1: add the Official Nvidia PPA to Ubuntu



        sudo add-apt-repository ppa:graphics-drivers/ppa


        //Step 2: Update and upgrade again



        Sudo apt-get update
        Sudo apt-get upgrade


        //Step 3: I checked which was the recommended driver for my GPU via the command:



        ubuntu-drivers devices


        //Step 4: I opened "Software & Updates" and clicked the "Additional Drivers" tab, I then chose the recommended driver and clicked "Apply Changes", while the driver was installing somewhere in the middle it promped me for secure boot password, that it when i entered the password i set up when i was installing ubuntu, after it finished applying i restarted my device, when it was rebooting a blue menu appeared asking to press any key, i pressed then a menu labeled as "Perform MOK Management" appeared, there were the following four options:




        1. Continue boot

        2. Enroll Key

        3. Enroll Key from Disk

        4. Enroll Key from Hash


        I chose option number 2, then i continued to boot, it finally worked, I went to Ubuntu settings->Details and my Graphic Card name was Shown correctly.






        share|improve this answer


























          1












          1








          1







          My steps to make it work with secure boot were as follows:



          When i was installing Ubuntu 18.04.1, when i reached the "updates and other software stage" in the installation, there was an option to set a password for secure boot, so i went ahead and enabled the check box and entered a new password for secure boot,



          Later on after the installation, when i wanted to install Nvidia drivers, i did the following:



          //standard ubuntu procedure:



          Sudo apt-get update
          Sudo apt-get upgrade


          //Step 1: add the Official Nvidia PPA to Ubuntu



          sudo add-apt-repository ppa:graphics-drivers/ppa


          //Step 2: Update and upgrade again



          Sudo apt-get update
          Sudo apt-get upgrade


          //Step 3: I checked which was the recommended driver for my GPU via the command:



          ubuntu-drivers devices


          //Step 4: I opened "Software & Updates" and clicked the "Additional Drivers" tab, I then chose the recommended driver and clicked "Apply Changes", while the driver was installing somewhere in the middle it promped me for secure boot password, that it when i entered the password i set up when i was installing ubuntu, after it finished applying i restarted my device, when it was rebooting a blue menu appeared asking to press any key, i pressed then a menu labeled as "Perform MOK Management" appeared, there were the following four options:




          1. Continue boot

          2. Enroll Key

          3. Enroll Key from Disk

          4. Enroll Key from Hash


          I chose option number 2, then i continued to boot, it finally worked, I went to Ubuntu settings->Details and my Graphic Card name was Shown correctly.






          share|improve this answer













          My steps to make it work with secure boot were as follows:



          When i was installing Ubuntu 18.04.1, when i reached the "updates and other software stage" in the installation, there was an option to set a password for secure boot, so i went ahead and enabled the check box and entered a new password for secure boot,



          Later on after the installation, when i wanted to install Nvidia drivers, i did the following:



          //standard ubuntu procedure:



          Sudo apt-get update
          Sudo apt-get upgrade


          //Step 1: add the Official Nvidia PPA to Ubuntu



          sudo add-apt-repository ppa:graphics-drivers/ppa


          //Step 2: Update and upgrade again



          Sudo apt-get update
          Sudo apt-get upgrade


          //Step 3: I checked which was the recommended driver for my GPU via the command:



          ubuntu-drivers devices


          //Step 4: I opened "Software & Updates" and clicked the "Additional Drivers" tab, I then chose the recommended driver and clicked "Apply Changes", while the driver was installing somewhere in the middle it promped me for secure boot password, that it when i entered the password i set up when i was installing ubuntu, after it finished applying i restarted my device, when it was rebooting a blue menu appeared asking to press any key, i pressed then a menu labeled as "Perform MOK Management" appeared, there were the following four options:




          1. Continue boot

          2. Enroll Key

          3. Enroll Key from Disk

          4. Enroll Key from Hash


          I chose option number 2, then i continued to boot, it finally worked, I went to Ubuntu settings->Details and my Graphic Card name was Shown correctly.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 9 hours ago









          omar ramomar ram

          15113




          15113

























              0














              Thanks @Pilot6.



              For the explanation that you gave in comments section.



              Answer:



              The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also: Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?






              share|improve this answer




























                0














                Thanks @Pilot6.



                For the explanation that you gave in comments section.



                Answer:



                The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also: Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?






                share|improve this answer


























                  0












                  0








                  0







                  Thanks @Pilot6.



                  For the explanation that you gave in comments section.



                  Answer:



                  The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also: Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?






                  share|improve this answer













                  Thanks @Pilot6.



                  For the explanation that you gave in comments section.



                  Answer:



                  The reason is that it is not signed. SB is useless BTW. Just disable it and forget. See also: Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 20 '18 at 10:14









                  Loic L.Loic L.

                  5616




                  5616






























                      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%2f1048135%2finstall-nvidia-drivers-ubuntu-18-04-with-secure-boot%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

                      GameSpot

                      connect to host localhost port 22: Connection refused

                      Getting a Wifi WPA2 wifi connection