Message pops up on booting ubuntu 16.04 lts

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Error found when loading /home/user/.profile
/home/user/.profile line 20: command not found
As a result the session will not be configured correctly
Fix the problem as soon as feasible


This is the output of cat -n /home/user/.profile:



 1 # ~/.profile: executed by the command interpreter for login shells.
2 # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
3 # exists.
4 # see /usr/share/doc/bash/examples/startup-files for examples.
5 # the files are located in the bash-doc package.
6
7 # the default umask is set in /etc/profile; for setting the umask
8 # for ssh logins, install and configure the libpam-umask package.
9 #umask 022
10
11 # if running bash
12 if [ -n "$BASH_VERSION" ]; then
13 # include .bashrc if it exists
14 if [ -f "$HOME/.bashrc" ]; then
15 . "$HOME/.bashrc"
16 fi
17 fi
18
19 # set PATH so it includes user's private bin directories
20 if [ -d "$HOME/bin"] ; then
21 PATH="$HOME/BIN:$PATH"
22 fi
23
24 #Make JAVA_HOME first...
25 export JAVA_HOME=/home/yashkanna/.javajre/jre1.8.0_161
26 PATH="$PATH:$JAVA_HOME/bin"


What should I do?










share|improve this question



























    up vote
    0
    down vote

    favorite












    Error found when loading /home/user/.profile
    /home/user/.profile line 20: command not found
    As a result the session will not be configured correctly
    Fix the problem as soon as feasible


    This is the output of cat -n /home/user/.profile:



     1 # ~/.profile: executed by the command interpreter for login shells.
    2 # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
    3 # exists.
    4 # see /usr/share/doc/bash/examples/startup-files for examples.
    5 # the files are located in the bash-doc package.
    6
    7 # the default umask is set in /etc/profile; for setting the umask
    8 # for ssh logins, install and configure the libpam-umask package.
    9 #umask 022
    10
    11 # if running bash
    12 if [ -n "$BASH_VERSION" ]; then
    13 # include .bashrc if it exists
    14 if [ -f "$HOME/.bashrc" ]; then
    15 . "$HOME/.bashrc"
    16 fi
    17 fi
    18
    19 # set PATH so it includes user's private bin directories
    20 if [ -d "$HOME/bin"] ; then
    21 PATH="$HOME/BIN:$PATH"
    22 fi
    23
    24 #Make JAVA_HOME first...
    25 export JAVA_HOME=/home/yashkanna/.javajre/jre1.8.0_161
    26 PATH="$PATH:$JAVA_HOME/bin"


    What should I do?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Error found when loading /home/user/.profile
      /home/user/.profile line 20: command not found
      As a result the session will not be configured correctly
      Fix the problem as soon as feasible


      This is the output of cat -n /home/user/.profile:



       1 # ~/.profile: executed by the command interpreter for login shells.
      2 # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
      3 # exists.
      4 # see /usr/share/doc/bash/examples/startup-files for examples.
      5 # the files are located in the bash-doc package.
      6
      7 # the default umask is set in /etc/profile; for setting the umask
      8 # for ssh logins, install and configure the libpam-umask package.
      9 #umask 022
      10
      11 # if running bash
      12 if [ -n "$BASH_VERSION" ]; then
      13 # include .bashrc if it exists
      14 if [ -f "$HOME/.bashrc" ]; then
      15 . "$HOME/.bashrc"
      16 fi
      17 fi
      18
      19 # set PATH so it includes user's private bin directories
      20 if [ -d "$HOME/bin"] ; then
      21 PATH="$HOME/BIN:$PATH"
      22 fi
      23
      24 #Make JAVA_HOME first...
      25 export JAVA_HOME=/home/yashkanna/.javajre/jre1.8.0_161
      26 PATH="$PATH:$JAVA_HOME/bin"


      What should I do?










      share|improve this question















      Error found when loading /home/user/.profile
      /home/user/.profile line 20: command not found
      As a result the session will not be configured correctly
      Fix the problem as soon as feasible


      This is the output of cat -n /home/user/.profile:



       1 # ~/.profile: executed by the command interpreter for login shells.
      2 # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
      3 # exists.
      4 # see /usr/share/doc/bash/examples/startup-files for examples.
      5 # the files are located in the bash-doc package.
      6
      7 # the default umask is set in /etc/profile; for setting the umask
      8 # for ssh logins, install and configure the libpam-umask package.
      9 #umask 022
      10
      11 # if running bash
      12 if [ -n "$BASH_VERSION" ]; then
      13 # include .bashrc if it exists
      14 if [ -f "$HOME/.bashrc" ]; then
      15 . "$HOME/.bashrc"
      16 fi
      17 fi
      18
      19 # set PATH so it includes user's private bin directories
      20 if [ -d "$HOME/bin"] ; then
      21 PATH="$HOME/BIN:$PATH"
      22 fi
      23
      24 #Make JAVA_HOME first...
      25 export JAVA_HOME=/home/yashkanna/.javajre/jre1.8.0_161
      26 PATH="$PATH:$JAVA_HOME/bin"


      What should I do?







      16.04 bash






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 15 at 13:50









      RoVo

      5,5641237




      5,5641237










      asked Mar 15 at 13:40









      yashkanna 6àßhkàññà

      12




      12




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".



          Replace



          if [ -d "$HOME/bin"] ; then
          PATH="$HOME/BIN:$PATH"
          fi


          with



          if [ -d "$HOME/bin" ] ; then
          PATH="$HOME/bin:$PATH"
          fi





          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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f1015193%2fmessage-pops-up-on-booting-ubuntu-16-04-lts%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            4
            down vote













            There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".



            Replace



            if [ -d "$HOME/bin"] ; then
            PATH="$HOME/BIN:$PATH"
            fi


            with



            if [ -d "$HOME/bin" ] ; then
            PATH="$HOME/bin:$PATH"
            fi





            share|improve this answer


























              up vote
              4
              down vote













              There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".



              Replace



              if [ -d "$HOME/bin"] ; then
              PATH="$HOME/BIN:$PATH"
              fi


              with



              if [ -d "$HOME/bin" ] ; then
              PATH="$HOME/bin:$PATH"
              fi





              share|improve this answer
























                up vote
                4
                down vote










                up vote
                4
                down vote









                There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".



                Replace



                if [ -d "$HOME/bin"] ; then
                PATH="$HOME/BIN:$PATH"
                fi


                with



                if [ -d "$HOME/bin" ] ; then
                PATH="$HOME/bin:$PATH"
                fi





                share|improve this answer














                There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".



                Replace



                if [ -d "$HOME/bin"] ; then
                PATH="$HOME/BIN:$PATH"
                fi


                with



                if [ -d "$HOME/bin" ] ; then
                PATH="$HOME/bin:$PATH"
                fi






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 15 at 13:49









                pa4080

                12.3k52256




                12.3k52256










                answered Mar 15 at 13:45









                RoVo

                5,5641237




                5,5641237



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1015193%2fmessage-pops-up-on-booting-ubuntu-16-04-lts%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error

                    How do I move numbers in filenames, in a batch renaming operation?