Ubuntu 18.04 on startup error, [-f: command not found











up vote
0
down vote

favorite












I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work
enter image description here



The only thing I did was following the react-native installation instruction:
created a .bash_profile at $HOME/.bash_profile and gave permission as .bashrc or .profile which was Me and group amir. just to prevent do source .bash_profile every time I did add it (I am not sure) in .bashrc or .bashprofile that if the .bash_profile exists add it. just copy pasted the other if on the upper line.



so it seems there is a white space or some problem at that command (if I did add it to .profile). how can I boot to Ubuntu now to make it correct?










share|improve this question
























  • The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
    – Alvin Liang
    Nov 29 at 9:44












  • If he can't boot then Ctrl+alt+f3 won't work!
    – George Udosen
    Nov 29 at 9:47












  • tty3 should work before login so won't be affected by .profile, but I don't know how bad the account status is. May not be logged in into bash as well.
    – Alvin Liang
    Nov 29 at 9:49

















up vote
0
down vote

favorite












I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work
enter image description here



The only thing I did was following the react-native installation instruction:
created a .bash_profile at $HOME/.bash_profile and gave permission as .bashrc or .profile which was Me and group amir. just to prevent do source .bash_profile every time I did add it (I am not sure) in .bashrc or .bashprofile that if the .bash_profile exists add it. just copy pasted the other if on the upper line.



so it seems there is a white space or some problem at that command (if I did add it to .profile). how can I boot to Ubuntu now to make it correct?










share|improve this question
























  • The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
    – Alvin Liang
    Nov 29 at 9:44












  • If he can't boot then Ctrl+alt+f3 won't work!
    – George Udosen
    Nov 29 at 9:47












  • tty3 should work before login so won't be affected by .profile, but I don't know how bad the account status is. May not be logged in into bash as well.
    – Alvin Liang
    Nov 29 at 9:49















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work
enter image description here



The only thing I did was following the react-native installation instruction:
created a .bash_profile at $HOME/.bash_profile and gave permission as .bashrc or .profile which was Me and group amir. just to prevent do source .bash_profile every time I did add it (I am not sure) in .bashrc or .bashprofile that if the .bash_profile exists add it. just copy pasted the other if on the upper line.



so it seems there is a white space or some problem at that command (if I did add it to .profile). how can I boot to Ubuntu now to make it correct?










share|improve this question















I booted to installed Ubuntu 18.04 on my system and faced the error and pressing Ok button does not work
enter image description here



The only thing I did was following the react-native installation instruction:
created a .bash_profile at $HOME/.bash_profile and gave permission as .bashrc or .profile which was Me and group amir. just to prevent do source .bash_profile every time I did add it (I am not sure) in .bashrc or .bashprofile that if the .bash_profile exists add it. just copy pasted the other if on the upper line.



so it seems there is a white space or some problem at that command (if I did add it to .profile). how can I boot to Ubuntu now to make it correct?







bash 18.04 permissions bashrc .profile






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 29 at 9:43

























asked Nov 29 at 9:36









Amir-Mousavi

13011




13011












  • The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
    – Alvin Liang
    Nov 29 at 9:44












  • If he can't boot then Ctrl+alt+f3 won't work!
    – George Udosen
    Nov 29 at 9:47












  • tty3 should work before login so won't be affected by .profile, but I don't know how bad the account status is. May not be logged in into bash as well.
    – Alvin Liang
    Nov 29 at 9:49




















  • The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
    – Alvin Liang
    Nov 29 at 9:44












  • If he can't boot then Ctrl+alt+f3 won't work!
    – George Udosen
    Nov 29 at 9:47












  • tty3 should work before login so won't be affected by .profile, but I don't know how bad the account status is. May not be logged in into bash as well.
    – Alvin Liang
    Nov 29 at 9:49


















The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
– Alvin Liang
Nov 29 at 9:44






The fastest way is using ctrl-alt-f3 to go to tty3 and login in there.
– Alvin Liang
Nov 29 at 9:44














If he can't boot then Ctrl+alt+f3 won't work!
– George Udosen
Nov 29 at 9:47






If he can't boot then Ctrl+alt+f3 won't work!
– George Udosen
Nov 29 at 9:47














tty3 should work before login so won't be affected by .profile, but I don't know how bad the account status is. May not be logged in into bash as well.
– Alvin Liang
Nov 29 at 9:49






tty3 should work before login so won't be affected by .profile, but I don't know how bad the account status is. May not be logged in into bash as well.
– Alvin Liang
Nov 29 at 9:49












1 Answer
1






active

oldest

votes

















up vote
1
down vote













To edit those files use these steps:




  1. Boot with installation media and select Try Ubuntu


  2. Mount root at the point /mnt



    sudo mount /dev/sdaX /mnt



    • Make sure that you know your root, i.e. the partition that / was mounted on during installation.




  3. Then chroot into that location so you can edit your files:



    sudo chroot /mnt


  4. Now use your editor and edit that file your previously edited.


NOTE: If your lost just do ls /mnt to see where your going!!






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',
    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%2f1097059%2fubuntu-18-04-on-startup-error-f-command-not-found%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








    up vote
    1
    down vote













    To edit those files use these steps:




    1. Boot with installation media and select Try Ubuntu


    2. Mount root at the point /mnt



      sudo mount /dev/sdaX /mnt



      • Make sure that you know your root, i.e. the partition that / was mounted on during installation.




    3. Then chroot into that location so you can edit your files:



      sudo chroot /mnt


    4. Now use your editor and edit that file your previously edited.


    NOTE: If your lost just do ls /mnt to see where your going!!






    share|improve this answer

























      up vote
      1
      down vote













      To edit those files use these steps:




      1. Boot with installation media and select Try Ubuntu


      2. Mount root at the point /mnt



        sudo mount /dev/sdaX /mnt



        • Make sure that you know your root, i.e. the partition that / was mounted on during installation.




      3. Then chroot into that location so you can edit your files:



        sudo chroot /mnt


      4. Now use your editor and edit that file your previously edited.


      NOTE: If your lost just do ls /mnt to see where your going!!






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        To edit those files use these steps:




        1. Boot with installation media and select Try Ubuntu


        2. Mount root at the point /mnt



          sudo mount /dev/sdaX /mnt



          • Make sure that you know your root, i.e. the partition that / was mounted on during installation.




        3. Then chroot into that location so you can edit your files:



          sudo chroot /mnt


        4. Now use your editor and edit that file your previously edited.


        NOTE: If your lost just do ls /mnt to see where your going!!






        share|improve this answer












        To edit those files use these steps:




        1. Boot with installation media and select Try Ubuntu


        2. Mount root at the point /mnt



          sudo mount /dev/sdaX /mnt



          • Make sure that you know your root, i.e. the partition that / was mounted on during installation.




        3. Then chroot into that location so you can edit your files:



          sudo chroot /mnt


        4. Now use your editor and edit that file your previously edited.


        NOTE: If your lost just do ls /mnt to see where your going!!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 29 at 9:51









        George Udosen

        18.9k94266




        18.9k94266






























            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.





            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%2faskubuntu.com%2fquestions%2f1097059%2fubuntu-18-04-on-startup-error-f-command-not-found%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕