Ubuntu 18.04 cannot boot after installing the NVIDIA driver












1















I tried to install Nvidia driver on my Alienware 17 R4 laptop with GTX 1070. However, I cannot boot the computer and it always stuck on a purple screen before logging in. What I can do is just to log in single user mode and remove the driver.



I have tried several versions, including 410.78, 410.93, 390. I am really grateful if someone can help me.










share|improve this question

























  • Try recovery mode.

    – Vijay
    Jan 5 at 6:25











  • I tried, but it doesn't work. It still stuck.

    – YHLi
    Jan 5 at 10:55











  • How did you install NVIDIA driver, from the GUI Additional Drivers or some other method?

    – Vijay
    Jan 5 at 12:43
















1















I tried to install Nvidia driver on my Alienware 17 R4 laptop with GTX 1070. However, I cannot boot the computer and it always stuck on a purple screen before logging in. What I can do is just to log in single user mode and remove the driver.



I have tried several versions, including 410.78, 410.93, 390. I am really grateful if someone can help me.










share|improve this question

























  • Try recovery mode.

    – Vijay
    Jan 5 at 6:25











  • I tried, but it doesn't work. It still stuck.

    – YHLi
    Jan 5 at 10:55











  • How did you install NVIDIA driver, from the GUI Additional Drivers or some other method?

    – Vijay
    Jan 5 at 12:43














1












1








1








I tried to install Nvidia driver on my Alienware 17 R4 laptop with GTX 1070. However, I cannot boot the computer and it always stuck on a purple screen before logging in. What I can do is just to log in single user mode and remove the driver.



I have tried several versions, including 410.78, 410.93, 390. I am really grateful if someone can help me.










share|improve this question
















I tried to install Nvidia driver on my Alienware 17 R4 laptop with GTX 1070. However, I cannot boot the computer and it always stuck on a purple screen before logging in. What I can do is just to log in single user mode and remove the driver.



I have tried several versions, including 410.78, 410.93, 390. I am really grateful if someone can help me.







drivers nvidia






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 5 at 5:20









DK Bose

13.2k124083




13.2k124083










asked Jan 5 at 5:05









YHLiYHLi

61




61













  • Try recovery mode.

    – Vijay
    Jan 5 at 6:25











  • I tried, but it doesn't work. It still stuck.

    – YHLi
    Jan 5 at 10:55











  • How did you install NVIDIA driver, from the GUI Additional Drivers or some other method?

    – Vijay
    Jan 5 at 12:43



















  • Try recovery mode.

    – Vijay
    Jan 5 at 6:25











  • I tried, but it doesn't work. It still stuck.

    – YHLi
    Jan 5 at 10:55











  • How did you install NVIDIA driver, from the GUI Additional Drivers or some other method?

    – Vijay
    Jan 5 at 12:43

















Try recovery mode.

– Vijay
Jan 5 at 6:25





Try recovery mode.

– Vijay
Jan 5 at 6:25













I tried, but it doesn't work. It still stuck.

– YHLi
Jan 5 at 10:55





I tried, but it doesn't work. It still stuck.

– YHLi
Jan 5 at 10:55













How did you install NVIDIA driver, from the GUI Additional Drivers or some other method?

– Vijay
Jan 5 at 12:43





How did you install NVIDIA driver, from the GUI Additional Drivers or some other method?

– Vijay
Jan 5 at 12:43










1 Answer
1






active

oldest

votes


















0














Try removing NVIDIA by booting into live USB/DVD.




  • Boot from live DVD or USB drive (installation DVD/USB) and choose "Try Ubuntu".



  • Mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD)



    or. Open a terminal (Ctrl+Alt+T) and use the following command:



    sudo fdisk -l


    and find out. It is usually a EXT4 Partition. Replace the XX with the drive letter, and partition number, for example: sudo mount /dev/sda1 /mnt.



    sudo mount /dev/sdXX /mnt
    sudo mount /dev/sdXY /mnt/boot #if separate boot partition


    Note : sdX = disk | sdXX = system partition | sdXY = boot partition




  • Now bind the directories that are needed to access and detect other operating systems.



    sudo mount --bind /dev /mnt/dev &&
    sudo mount --bind /dev/pts /mnt/dev/pts &&
    sudo mount --bind /proc /mnt/proc &&
    sudo mount --bind /sys /mnt/sys



  • Now chroot.



    sudo chroot /mnt



  • Now remove NVIDIA



    apt remove --purge nvidia-*
    apt install ubuntu-desktop
    echo 'nouveau' | tee -a /etc/modules
    apt install ubuntu-desktop



  • If network problem



    echo "nameserver 8.8.8.8" >/etc/resolv.conf



  • Now unmount as follows



    exit &&
    sudo umount /mnt/sys &&
    sudo umount /mnt/proc &&
    sudo umount /mnt/dev/pts &&
    sudo umount /mnt/dev &&
    sudo umount /mnt


  • Shut down and turn on your computer again without installation DVD/USB.







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%2f1107092%2fubuntu-18-04-cannot-boot-after-installing-the-nvidia-driver%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














    Try removing NVIDIA by booting into live USB/DVD.




    • Boot from live DVD or USB drive (installation DVD/USB) and choose "Try Ubuntu".



    • Mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD)



      or. Open a terminal (Ctrl+Alt+T) and use the following command:



      sudo fdisk -l


      and find out. It is usually a EXT4 Partition. Replace the XX with the drive letter, and partition number, for example: sudo mount /dev/sda1 /mnt.



      sudo mount /dev/sdXX /mnt
      sudo mount /dev/sdXY /mnt/boot #if separate boot partition


      Note : sdX = disk | sdXX = system partition | sdXY = boot partition




    • Now bind the directories that are needed to access and detect other operating systems.



      sudo mount --bind /dev /mnt/dev &&
      sudo mount --bind /dev/pts /mnt/dev/pts &&
      sudo mount --bind /proc /mnt/proc &&
      sudo mount --bind /sys /mnt/sys



    • Now chroot.



      sudo chroot /mnt



    • Now remove NVIDIA



      apt remove --purge nvidia-*
      apt install ubuntu-desktop
      echo 'nouveau' | tee -a /etc/modules
      apt install ubuntu-desktop



    • If network problem



      echo "nameserver 8.8.8.8" >/etc/resolv.conf



    • Now unmount as follows



      exit &&
      sudo umount /mnt/sys &&
      sudo umount /mnt/proc &&
      sudo umount /mnt/dev/pts &&
      sudo umount /mnt/dev &&
      sudo umount /mnt


    • Shut down and turn on your computer again without installation DVD/USB.







    share|improve this answer






























      0














      Try removing NVIDIA by booting into live USB/DVD.




      • Boot from live DVD or USB drive (installation DVD/USB) and choose "Try Ubuntu".



      • Mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD)



        or. Open a terminal (Ctrl+Alt+T) and use the following command:



        sudo fdisk -l


        and find out. It is usually a EXT4 Partition. Replace the XX with the drive letter, and partition number, for example: sudo mount /dev/sda1 /mnt.



        sudo mount /dev/sdXX /mnt
        sudo mount /dev/sdXY /mnt/boot #if separate boot partition


        Note : sdX = disk | sdXX = system partition | sdXY = boot partition




      • Now bind the directories that are needed to access and detect other operating systems.



        sudo mount --bind /dev /mnt/dev &&
        sudo mount --bind /dev/pts /mnt/dev/pts &&
        sudo mount --bind /proc /mnt/proc &&
        sudo mount --bind /sys /mnt/sys



      • Now chroot.



        sudo chroot /mnt



      • Now remove NVIDIA



        apt remove --purge nvidia-*
        apt install ubuntu-desktop
        echo 'nouveau' | tee -a /etc/modules
        apt install ubuntu-desktop



      • If network problem



        echo "nameserver 8.8.8.8" >/etc/resolv.conf



      • Now unmount as follows



        exit &&
        sudo umount /mnt/sys &&
        sudo umount /mnt/proc &&
        sudo umount /mnt/dev/pts &&
        sudo umount /mnt/dev &&
        sudo umount /mnt


      • Shut down and turn on your computer again without installation DVD/USB.







      share|improve this answer




























        0












        0








        0







        Try removing NVIDIA by booting into live USB/DVD.




        • Boot from live DVD or USB drive (installation DVD/USB) and choose "Try Ubuntu".



        • Mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD)



          or. Open a terminal (Ctrl+Alt+T) and use the following command:



          sudo fdisk -l


          and find out. It is usually a EXT4 Partition. Replace the XX with the drive letter, and partition number, for example: sudo mount /dev/sda1 /mnt.



          sudo mount /dev/sdXX /mnt
          sudo mount /dev/sdXY /mnt/boot #if separate boot partition


          Note : sdX = disk | sdXX = system partition | sdXY = boot partition




        • Now bind the directories that are needed to access and detect other operating systems.



          sudo mount --bind /dev /mnt/dev &&
          sudo mount --bind /dev/pts /mnt/dev/pts &&
          sudo mount --bind /proc /mnt/proc &&
          sudo mount --bind /sys /mnt/sys



        • Now chroot.



          sudo chroot /mnt



        • Now remove NVIDIA



          apt remove --purge nvidia-*
          apt install ubuntu-desktop
          echo 'nouveau' | tee -a /etc/modules
          apt install ubuntu-desktop



        • If network problem



          echo "nameserver 8.8.8.8" >/etc/resolv.conf



        • Now unmount as follows



          exit &&
          sudo umount /mnt/sys &&
          sudo umount /mnt/proc &&
          sudo umount /mnt/dev/pts &&
          sudo umount /mnt/dev &&
          sudo umount /mnt


        • Shut down and turn on your computer again without installation DVD/USB.







        share|improve this answer















        Try removing NVIDIA by booting into live USB/DVD.




        • Boot from live DVD or USB drive (installation DVD/USB) and choose "Try Ubuntu".



        • Mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD)



          or. Open a terminal (Ctrl+Alt+T) and use the following command:



          sudo fdisk -l


          and find out. It is usually a EXT4 Partition. Replace the XX with the drive letter, and partition number, for example: sudo mount /dev/sda1 /mnt.



          sudo mount /dev/sdXX /mnt
          sudo mount /dev/sdXY /mnt/boot #if separate boot partition


          Note : sdX = disk | sdXX = system partition | sdXY = boot partition




        • Now bind the directories that are needed to access and detect other operating systems.



          sudo mount --bind /dev /mnt/dev &&
          sudo mount --bind /dev/pts /mnt/dev/pts &&
          sudo mount --bind /proc /mnt/proc &&
          sudo mount --bind /sys /mnt/sys



        • Now chroot.



          sudo chroot /mnt



        • Now remove NVIDIA



          apt remove --purge nvidia-*
          apt install ubuntu-desktop
          echo 'nouveau' | tee -a /etc/modules
          apt install ubuntu-desktop



        • If network problem



          echo "nameserver 8.8.8.8" >/etc/resolv.conf



        • Now unmount as follows



          exit &&
          sudo umount /mnt/sys &&
          sudo umount /mnt/proc &&
          sudo umount /mnt/dev/pts &&
          sudo umount /mnt/dev &&
          sudo umount /mnt


        • Shut down and turn on your computer again without installation DVD/USB.








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 5 at 14:48









        Kulfy

        4,08151341




        4,08151341










        answered Jan 5 at 13:47









        VijayVijay

        1,5101618




        1,5101618






























            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%2f1107092%2fubuntu-18-04-cannot-boot-after-installing-the-nvidia-driver%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

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            File:DeusFollowingSea.jpg