I Can't use sudo apt install





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







-1















When ever i run sudo apt install it says:



E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.



but when I run sudo dpkg --configure -a it says:



Your system has UEFI Secure boot enabled. UEFI Secure Boot requires additional configuration to work with third-party drivers. The system will assist you in configuring UEFI Secure Boot. To permit the use of third-party drivers, a new Machine-Owner Key (MOK) has been generated. This key now needs to be enrolled in your system's firmware. To ensure that this change is being made by you as an authorized user, and not by an attacker, you must choose a password now and then confirm the change after reboot using the same password, in both the "Enroll MOK" and "Change Secure Boot state" menus that will be presented to you when this system reboots.



It Started doing that right after I installed Virtualbox



How can I Fix that?










share|improve this question

























  • It Won't work even though I did what it said

    – Hoidberg
    Feb 25 at 0:38











  • @Hoidberg Please edit and add more details. How exactly does it not work?

    – wjandrea
    Feb 25 at 0:38











  • And what exactly did you do?

    – terdon
    Feb 25 at 0:39











  • I Tried to fix it but even after doing what it says it still pops up

    – Hoidberg
    Feb 25 at 0:41






  • 3





    OK, but please edit your question and add these details. Did you choose a password? Did you reboot? Were the menus actually presented to you? Did you choose the choices described? Did you try the same command after rebooting? Did you get the exact same output?

    – terdon
    Feb 25 at 1:47


















-1















When ever i run sudo apt install it says:



E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.



but when I run sudo dpkg --configure -a it says:



Your system has UEFI Secure boot enabled. UEFI Secure Boot requires additional configuration to work with third-party drivers. The system will assist you in configuring UEFI Secure Boot. To permit the use of third-party drivers, a new Machine-Owner Key (MOK) has been generated. This key now needs to be enrolled in your system's firmware. To ensure that this change is being made by you as an authorized user, and not by an attacker, you must choose a password now and then confirm the change after reboot using the same password, in both the "Enroll MOK" and "Change Secure Boot state" menus that will be presented to you when this system reboots.



It Started doing that right after I installed Virtualbox



How can I Fix that?










share|improve this question

























  • It Won't work even though I did what it said

    – Hoidberg
    Feb 25 at 0:38











  • @Hoidberg Please edit and add more details. How exactly does it not work?

    – wjandrea
    Feb 25 at 0:38











  • And what exactly did you do?

    – terdon
    Feb 25 at 0:39











  • I Tried to fix it but even after doing what it says it still pops up

    – Hoidberg
    Feb 25 at 0:41






  • 3





    OK, but please edit your question and add these details. Did you choose a password? Did you reboot? Were the menus actually presented to you? Did you choose the choices described? Did you try the same command after rebooting? Did you get the exact same output?

    – terdon
    Feb 25 at 1:47














-1












-1








-1


1






When ever i run sudo apt install it says:



E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.



but when I run sudo dpkg --configure -a it says:



Your system has UEFI Secure boot enabled. UEFI Secure Boot requires additional configuration to work with third-party drivers. The system will assist you in configuring UEFI Secure Boot. To permit the use of third-party drivers, a new Machine-Owner Key (MOK) has been generated. This key now needs to be enrolled in your system's firmware. To ensure that this change is being made by you as an authorized user, and not by an attacker, you must choose a password now and then confirm the change after reboot using the same password, in both the "Enroll MOK" and "Change Secure Boot state" menus that will be presented to you when this system reboots.



It Started doing that right after I installed Virtualbox



How can I Fix that?










share|improve this question
















When ever i run sudo apt install it says:



E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.



but when I run sudo dpkg --configure -a it says:



Your system has UEFI Secure boot enabled. UEFI Secure Boot requires additional configuration to work with third-party drivers. The system will assist you in configuring UEFI Secure Boot. To permit the use of third-party drivers, a new Machine-Owner Key (MOK) has been generated. This key now needs to be enrolled in your system's firmware. To ensure that this change is being made by you as an authorized user, and not by an attacker, you must choose a password now and then confirm the change after reboot using the same password, in both the "Enroll MOK" and "Change Secure Boot state" menus that will be presented to you when this system reboots.



It Started doing that right after I installed Virtualbox



How can I Fix that?







apt uefi dpkg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 1 at 23:47







Hoidberg

















asked Feb 25 at 0:33









HoidbergHoidberg

35




35













  • It Won't work even though I did what it said

    – Hoidberg
    Feb 25 at 0:38











  • @Hoidberg Please edit and add more details. How exactly does it not work?

    – wjandrea
    Feb 25 at 0:38











  • And what exactly did you do?

    – terdon
    Feb 25 at 0:39











  • I Tried to fix it but even after doing what it says it still pops up

    – Hoidberg
    Feb 25 at 0:41






  • 3





    OK, but please edit your question and add these details. Did you choose a password? Did you reboot? Were the menus actually presented to you? Did you choose the choices described? Did you try the same command after rebooting? Did you get the exact same output?

    – terdon
    Feb 25 at 1:47



















  • It Won't work even though I did what it said

    – Hoidberg
    Feb 25 at 0:38











  • @Hoidberg Please edit and add more details. How exactly does it not work?

    – wjandrea
    Feb 25 at 0:38











  • And what exactly did you do?

    – terdon
    Feb 25 at 0:39











  • I Tried to fix it but even after doing what it says it still pops up

    – Hoidberg
    Feb 25 at 0:41






  • 3





    OK, but please edit your question and add these details. Did you choose a password? Did you reboot? Were the menus actually presented to you? Did you choose the choices described? Did you try the same command after rebooting? Did you get the exact same output?

    – terdon
    Feb 25 at 1:47

















It Won't work even though I did what it said

– Hoidberg
Feb 25 at 0:38





It Won't work even though I did what it said

– Hoidberg
Feb 25 at 0:38













@Hoidberg Please edit and add more details. How exactly does it not work?

– wjandrea
Feb 25 at 0:38





@Hoidberg Please edit and add more details. How exactly does it not work?

– wjandrea
Feb 25 at 0:38













And what exactly did you do?

– terdon
Feb 25 at 0:39





And what exactly did you do?

– terdon
Feb 25 at 0:39













I Tried to fix it but even after doing what it says it still pops up

– Hoidberg
Feb 25 at 0:41





I Tried to fix it but even after doing what it says it still pops up

– Hoidberg
Feb 25 at 0:41




3




3





OK, but please edit your question and add these details. Did you choose a password? Did you reboot? Were the menus actually presented to you? Did you choose the choices described? Did you try the same command after rebooting? Did you get the exact same output?

– terdon
Feb 25 at 1:47





OK, but please edit your question and add these details. Did you choose a password? Did you reboot? Were the menus actually presented to you? Did you choose the choices described? Did you try the same command after rebooting? Did you get the exact same output?

– terdon
Feb 25 at 1:47










1 Answer
1






active

oldest

votes


















0














MOK Manager



sudo mokutil  --disable-validation
Root password:
Password:12345678
Password:12345678
sudo reboot


You will boot in MOK Manager = blue screen.




  1. The question to answer is YES for disabling secure boot.
    Number shown is password character: 7 is the 7th character of the pasword, keeping 12345678 is safer. Make sure numlock keyboard is enabled and enter numbers.

  2. Enroll the key/press enter : EFI/ubuntu/grubx64/OK/Redo for/BOOT/bootx64.efi/OK

  3. Enroll hash/press enter: EFI/ubuntu/grubx64.efi/OK/Redo for/BOOT/bootx64.efi/OK

  4. Reboot


On startup, you will see a message saying booting in insecure mode. Secure boot will be disabled momentarily on startup.



mokutil  --sb-state


The same problem occurs when we compile custom kernel with secure boot enabled. We have to disable secure boot only in MOK. No need to enroll key and hash.



mokutil  --sb-state
SecureBoot enabled
uname -a
Linux mm 5.0.0-050000rc8-generic #201902242030 SMP Mon Feb 25 01:32:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


Tested on Kernel 5.0-rc8



If 2 and 3 is not working, select secure boot instead in MOK and disable it with the same password. In MOK, disable secure boot at boot time is better and works in all distros.






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%2f1120987%2fi-cant-use-sudo-apt-install%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    MOK Manager



    sudo mokutil  --disable-validation
    Root password:
    Password:12345678
    Password:12345678
    sudo reboot


    You will boot in MOK Manager = blue screen.




    1. The question to answer is YES for disabling secure boot.
      Number shown is password character: 7 is the 7th character of the pasword, keeping 12345678 is safer. Make sure numlock keyboard is enabled and enter numbers.

    2. Enroll the key/press enter : EFI/ubuntu/grubx64/OK/Redo for/BOOT/bootx64.efi/OK

    3. Enroll hash/press enter: EFI/ubuntu/grubx64.efi/OK/Redo for/BOOT/bootx64.efi/OK

    4. Reboot


    On startup, you will see a message saying booting in insecure mode. Secure boot will be disabled momentarily on startup.



    mokutil  --sb-state


    The same problem occurs when we compile custom kernel with secure boot enabled. We have to disable secure boot only in MOK. No need to enroll key and hash.



    mokutil  --sb-state
    SecureBoot enabled
    uname -a
    Linux mm 5.0.0-050000rc8-generic #201902242030 SMP Mon Feb 25 01:32:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


    Tested on Kernel 5.0-rc8



    If 2 and 3 is not working, select secure boot instead in MOK and disable it with the same password. In MOK, disable secure boot at boot time is better and works in all distros.






    share|improve this answer






























      0














      MOK Manager



      sudo mokutil  --disable-validation
      Root password:
      Password:12345678
      Password:12345678
      sudo reboot


      You will boot in MOK Manager = blue screen.




      1. The question to answer is YES for disabling secure boot.
        Number shown is password character: 7 is the 7th character of the pasword, keeping 12345678 is safer. Make sure numlock keyboard is enabled and enter numbers.

      2. Enroll the key/press enter : EFI/ubuntu/grubx64/OK/Redo for/BOOT/bootx64.efi/OK

      3. Enroll hash/press enter: EFI/ubuntu/grubx64.efi/OK/Redo for/BOOT/bootx64.efi/OK

      4. Reboot


      On startup, you will see a message saying booting in insecure mode. Secure boot will be disabled momentarily on startup.



      mokutil  --sb-state


      The same problem occurs when we compile custom kernel with secure boot enabled. We have to disable secure boot only in MOK. No need to enroll key and hash.



      mokutil  --sb-state
      SecureBoot enabled
      uname -a
      Linux mm 5.0.0-050000rc8-generic #201902242030 SMP Mon Feb 25 01:32:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


      Tested on Kernel 5.0-rc8



      If 2 and 3 is not working, select secure boot instead in MOK and disable it with the same password. In MOK, disable secure boot at boot time is better and works in all distros.






      share|improve this answer




























        0












        0








        0







        MOK Manager



        sudo mokutil  --disable-validation
        Root password:
        Password:12345678
        Password:12345678
        sudo reboot


        You will boot in MOK Manager = blue screen.




        1. The question to answer is YES for disabling secure boot.
          Number shown is password character: 7 is the 7th character of the pasword, keeping 12345678 is safer. Make sure numlock keyboard is enabled and enter numbers.

        2. Enroll the key/press enter : EFI/ubuntu/grubx64/OK/Redo for/BOOT/bootx64.efi/OK

        3. Enroll hash/press enter: EFI/ubuntu/grubx64.efi/OK/Redo for/BOOT/bootx64.efi/OK

        4. Reboot


        On startup, you will see a message saying booting in insecure mode. Secure boot will be disabled momentarily on startup.



        mokutil  --sb-state


        The same problem occurs when we compile custom kernel with secure boot enabled. We have to disable secure boot only in MOK. No need to enroll key and hash.



        mokutil  --sb-state
        SecureBoot enabled
        uname -a
        Linux mm 5.0.0-050000rc8-generic #201902242030 SMP Mon Feb 25 01:32:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


        Tested on Kernel 5.0-rc8



        If 2 and 3 is not working, select secure boot instead in MOK and disable it with the same password. In MOK, disable secure boot at boot time is better and works in all distros.






        share|improve this answer















        MOK Manager



        sudo mokutil  --disable-validation
        Root password:
        Password:12345678
        Password:12345678
        sudo reboot


        You will boot in MOK Manager = blue screen.




        1. The question to answer is YES for disabling secure boot.
          Number shown is password character: 7 is the 7th character of the pasword, keeping 12345678 is safer. Make sure numlock keyboard is enabled and enter numbers.

        2. Enroll the key/press enter : EFI/ubuntu/grubx64/OK/Redo for/BOOT/bootx64.efi/OK

        3. Enroll hash/press enter: EFI/ubuntu/grubx64.efi/OK/Redo for/BOOT/bootx64.efi/OK

        4. Reboot


        On startup, you will see a message saying booting in insecure mode. Secure boot will be disabled momentarily on startup.



        mokutil  --sb-state


        The same problem occurs when we compile custom kernel with secure boot enabled. We have to disable secure boot only in MOK. No need to enroll key and hash.



        mokutil  --sb-state
        SecureBoot enabled
        uname -a
        Linux mm 5.0.0-050000rc8-generic #201902242030 SMP Mon Feb 25 01:32:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


        Tested on Kernel 5.0-rc8



        If 2 and 3 is not working, select secure boot instead in MOK and disable it with the same password. In MOK, disable secure boot at boot time is better and works in all distros.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 31 at 23:35

























        answered Feb 25 at 4:41









        MikemecanicMikemecanic

        815




        815






























            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%2f1120987%2fi-cant-use-sudo-apt-install%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

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?