grub recovery mode: etc/resolv.conf: no such file or directory












5














I’ve installed Ubuntu 16.04 on my laptop a few months ago and suddenly I can t get past the splash screen.



Where I’m stuck



(I see the red dots gradually becoming white and vice-versa, so something is happening, but I can t get past this screen)



I thus decided to boot in recovery mode to update and upgrade all my packages. But once I get there I have no internet access (with or without Ethernet cable). This is what I get when trying to enable networking:





Could someone explain me how to have internet access so I can hopefully be able to solve my other issue in order to be able to log in again on my machine?










share|improve this question




















  • 1




    See askubuntu.com/questions/162075/…
    – David Foerster
    Jul 29 '17 at 12:02






  • 1




    Do this echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf Then try connecting to Internet.
    – SanRam
    Aug 23 '17 at 19:27


















5














I’ve installed Ubuntu 16.04 on my laptop a few months ago and suddenly I can t get past the splash screen.



Where I’m stuck



(I see the red dots gradually becoming white and vice-versa, so something is happening, but I can t get past this screen)



I thus decided to boot in recovery mode to update and upgrade all my packages. But once I get there I have no internet access (with or without Ethernet cable). This is what I get when trying to enable networking:





Could someone explain me how to have internet access so I can hopefully be able to solve my other issue in order to be able to log in again on my machine?










share|improve this question




















  • 1




    See askubuntu.com/questions/162075/…
    – David Foerster
    Jul 29 '17 at 12:02






  • 1




    Do this echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf Then try connecting to Internet.
    – SanRam
    Aug 23 '17 at 19:27
















5












5








5


1





I’ve installed Ubuntu 16.04 on my laptop a few months ago and suddenly I can t get past the splash screen.



Where I’m stuck



(I see the red dots gradually becoming white and vice-versa, so something is happening, but I can t get past this screen)



I thus decided to boot in recovery mode to update and upgrade all my packages. But once I get there I have no internet access (with or without Ethernet cable). This is what I get when trying to enable networking:





Could someone explain me how to have internet access so I can hopefully be able to solve my other issue in order to be able to log in again on my machine?










share|improve this question















I’ve installed Ubuntu 16.04 on my laptop a few months ago and suddenly I can t get past the splash screen.



Where I’m stuck



(I see the red dots gradually becoming white and vice-versa, so something is happening, but I can t get past this screen)



I thus decided to boot in recovery mode to update and upgrade all my packages. But once I get there I have no internet access (with or without Ethernet cable). This is what I get when trying to enable networking:





Could someone explain me how to have internet access so I can hopefully be able to solve my other issue in order to be able to log in again on my machine?







ubuntu networking networkmanager resolv.conf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 29 '17 at 12:50









David Foerster

949616




949616










asked Jul 29 '17 at 11:29









traducerad

12614




12614








  • 1




    See askubuntu.com/questions/162075/…
    – David Foerster
    Jul 29 '17 at 12:02






  • 1




    Do this echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf Then try connecting to Internet.
    – SanRam
    Aug 23 '17 at 19:27
















  • 1




    See askubuntu.com/questions/162075/…
    – David Foerster
    Jul 29 '17 at 12:02






  • 1




    Do this echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf Then try connecting to Internet.
    – SanRam
    Aug 23 '17 at 19:27










1




1




See askubuntu.com/questions/162075/…
– David Foerster
Jul 29 '17 at 12:02




See askubuntu.com/questions/162075/…
– David Foerster
Jul 29 '17 at 12:02




1




1




Do this echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf Then try connecting to Internet.
– SanRam
Aug 23 '17 at 19:27






Do this echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf Then try connecting to Internet.
– SanRam
Aug 23 '17 at 19:27












1 Answer
1






active

oldest

votes


















0














On the menu, enable networking.



Next, drop into a root-shell. Verify with ifconfig -a that your network is available.If it is not, give your device a fixed IP address in such a way that it can communicate with your gateway.



Verify with netstat -rn that your default gateway is correct. If not, configure it with route add default gw xx.xx.xx.xx.



You should now be able to ping 8.8.8.8.



Verify that your root filesystem is not mounted read only with mount. If it is, remount it RW.



Put nameserver 8.8.8.8 in /etc/resolv.conf. Verify with ping google.com that name resolution works.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f382564%2fgrub-recovery-mode-etc-resolv-conf-no-such-file-or-directory%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














    On the menu, enable networking.



    Next, drop into a root-shell. Verify with ifconfig -a that your network is available.If it is not, give your device a fixed IP address in such a way that it can communicate with your gateway.



    Verify with netstat -rn that your default gateway is correct. If not, configure it with route add default gw xx.xx.xx.xx.



    You should now be able to ping 8.8.8.8.



    Verify that your root filesystem is not mounted read only with mount. If it is, remount it RW.



    Put nameserver 8.8.8.8 in /etc/resolv.conf. Verify with ping google.com that name resolution works.






    share|improve this answer


























      0














      On the menu, enable networking.



      Next, drop into a root-shell. Verify with ifconfig -a that your network is available.If it is not, give your device a fixed IP address in such a way that it can communicate with your gateway.



      Verify with netstat -rn that your default gateway is correct. If not, configure it with route add default gw xx.xx.xx.xx.



      You should now be able to ping 8.8.8.8.



      Verify that your root filesystem is not mounted read only with mount. If it is, remount it RW.



      Put nameserver 8.8.8.8 in /etc/resolv.conf. Verify with ping google.com that name resolution works.






      share|improve this answer
























        0












        0








        0






        On the menu, enable networking.



        Next, drop into a root-shell. Verify with ifconfig -a that your network is available.If it is not, give your device a fixed IP address in such a way that it can communicate with your gateway.



        Verify with netstat -rn that your default gateway is correct. If not, configure it with route add default gw xx.xx.xx.xx.



        You should now be able to ping 8.8.8.8.



        Verify that your root filesystem is not mounted read only with mount. If it is, remount it RW.



        Put nameserver 8.8.8.8 in /etc/resolv.conf. Verify with ping google.com that name resolution works.






        share|improve this answer












        On the menu, enable networking.



        Next, drop into a root-shell. Verify with ifconfig -a that your network is available.If it is not, give your device a fixed IP address in such a way that it can communicate with your gateway.



        Verify with netstat -rn that your default gateway is correct. If not, configure it with route add default gw xx.xx.xx.xx.



        You should now be able to ping 8.8.8.8.



        Verify that your root filesystem is not mounted read only with mount. If it is, remount it RW.



        Put nameserver 8.8.8.8 in /etc/resolv.conf. Verify with ping google.com that name resolution works.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 31 at 21:51









        Ljm Dullaart

        59017




        59017






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2funix.stackexchange.com%2fquestions%2f382564%2fgrub-recovery-mode-etc-resolv-conf-no-such-file-or-directory%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

            Morgemoulin

            Scott Moir

            Souastre