How do I edit a line created by an installer











up vote
0
down vote

favorite












So I've been trying to install Anaconda on elementary os. I used the steps found on this website http://docs.anaconda.com/anaconda/install/linux/. And got the following error.




bash: /home/anton/.bashrc: line 171: syntax error near unexpected token `added'



bash: /home/anton/.bashrc: line 171: esac# added by Anaconda3 5.3.0 installer'




apparently this means that on line 171 it should be




esac #added by Anaconda3 5.3.0 installer'




but if this line was added by the installer I don't know what I can do to edit it.










share|improve this question







New contributor




Gatbsy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote

    favorite












    So I've been trying to install Anaconda on elementary os. I used the steps found on this website http://docs.anaconda.com/anaconda/install/linux/. And got the following error.




    bash: /home/anton/.bashrc: line 171: syntax error near unexpected token `added'



    bash: /home/anton/.bashrc: line 171: esac# added by Anaconda3 5.3.0 installer'




    apparently this means that on line 171 it should be




    esac #added by Anaconda3 5.3.0 installer'




    but if this line was added by the installer I don't know what I can do to edit it.










    share|improve this question







    New contributor




    Gatbsy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      So I've been trying to install Anaconda on elementary os. I used the steps found on this website http://docs.anaconda.com/anaconda/install/linux/. And got the following error.




      bash: /home/anton/.bashrc: line 171: syntax error near unexpected token `added'



      bash: /home/anton/.bashrc: line 171: esac# added by Anaconda3 5.3.0 installer'




      apparently this means that on line 171 it should be




      esac #added by Anaconda3 5.3.0 installer'




      but if this line was added by the installer I don't know what I can do to edit it.










      share|improve this question







      New contributor




      Gatbsy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      So I've been trying to install Anaconda on elementary os. I used the steps found on this website http://docs.anaconda.com/anaconda/install/linux/. And got the following error.




      bash: /home/anton/.bashrc: line 171: syntax error near unexpected token `added'



      bash: /home/anton/.bashrc: line 171: esac# added by Anaconda3 5.3.0 installer'




      apparently this means that on line 171 it should be




      esac #added by Anaconda3 5.3.0 installer'




      but if this line was added by the installer I don't know what I can do to edit it.







      linux bash python anaconda






      share|improve this question







      New contributor




      Gatbsy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Gatbsy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Gatbsy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 13 at 10:54









      Gatbsy

      1




      1




      New contributor




      Gatbsy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Gatbsy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Gatbsy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Was this the last line in .bashrc before installing anaconda?
          If so you could try adding a newline at the end of the .bashrc before installing anaconda.



          The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)



            cat <<EOF >> "$BASH_RC"
          # added by Anaconda3 5.3.0 installer
          # >>> conda init >>>
          # !! Contents within this block are managed by 'conda init' !!
          __conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
          if [ $? -eq 0 ]; then
          \eval "$__conda_setup"
          else
          if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
          . "$PREFIX/etc/profile.d/conda.sh"
          CONDA_CHANGEPS1=false conda activate base
          else
          \export PATH="$PREFIX/bin:$PATH"
          fi
          fi
          unset __conda_setup
          # <<< conda init <<<
          EOF





          share|improve this answer























          • This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
            – Gatbsy
            Nov 13 at 11:29










          • The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
            – Manuel
            Nov 13 at 11:38










          • Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
            – Manuel
            Nov 13 at 12:25











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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
          });


          }
          });






          Gatbsy is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1374998%2fhow-do-i-edit-a-line-created-by-an-installer%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
          0
          down vote













          Was this the last line in .bashrc before installing anaconda?
          If so you could try adding a newline at the end of the .bashrc before installing anaconda.



          The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)



            cat <<EOF >> "$BASH_RC"
          # added by Anaconda3 5.3.0 installer
          # >>> conda init >>>
          # !! Contents within this block are managed by 'conda init' !!
          __conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
          if [ $? -eq 0 ]; then
          \eval "$__conda_setup"
          else
          if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
          . "$PREFIX/etc/profile.d/conda.sh"
          CONDA_CHANGEPS1=false conda activate base
          else
          \export PATH="$PREFIX/bin:$PATH"
          fi
          fi
          unset __conda_setup
          # <<< conda init <<<
          EOF





          share|improve this answer























          • This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
            – Gatbsy
            Nov 13 at 11:29










          • The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
            – Manuel
            Nov 13 at 11:38










          • Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
            – Manuel
            Nov 13 at 12:25















          up vote
          0
          down vote













          Was this the last line in .bashrc before installing anaconda?
          If so you could try adding a newline at the end of the .bashrc before installing anaconda.



          The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)



            cat <<EOF >> "$BASH_RC"
          # added by Anaconda3 5.3.0 installer
          # >>> conda init >>>
          # !! Contents within this block are managed by 'conda init' !!
          __conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
          if [ $? -eq 0 ]; then
          \eval "$__conda_setup"
          else
          if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
          . "$PREFIX/etc/profile.d/conda.sh"
          CONDA_CHANGEPS1=false conda activate base
          else
          \export PATH="$PREFIX/bin:$PATH"
          fi
          fi
          unset __conda_setup
          # <<< conda init <<<
          EOF





          share|improve this answer























          • This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
            – Gatbsy
            Nov 13 at 11:29










          • The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
            – Manuel
            Nov 13 at 11:38










          • Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
            – Manuel
            Nov 13 at 12:25













          up vote
          0
          down vote










          up vote
          0
          down vote









          Was this the last line in .bashrc before installing anaconda?
          If so you could try adding a newline at the end of the .bashrc before installing anaconda.



          The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)



            cat <<EOF >> "$BASH_RC"
          # added by Anaconda3 5.3.0 installer
          # >>> conda init >>>
          # !! Contents within this block are managed by 'conda init' !!
          __conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
          if [ $? -eq 0 ]; then
          \eval "$__conda_setup"
          else
          if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
          . "$PREFIX/etc/profile.d/conda.sh"
          CONDA_CHANGEPS1=false conda activate base
          else
          \export PATH="$PREFIX/bin:$PATH"
          fi
          fi
          unset __conda_setup
          # <<< conda init <<<
          EOF





          share|improve this answer














          Was this the last line in .bashrc before installing anaconda?
          If so you could try adding a newline at the end of the .bashrc before installing anaconda.



          The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)



            cat <<EOF >> "$BASH_RC"
          # added by Anaconda3 5.3.0 installer
          # >>> conda init >>>
          # !! Contents within this block are managed by 'conda init' !!
          __conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
          if [ $? -eq 0 ]; then
          \eval "$__conda_setup"
          else
          if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
          . "$PREFIX/etc/profile.d/conda.sh"
          CONDA_CHANGEPS1=false conda activate base
          else
          \export PATH="$PREFIX/bin:$PATH"
          fi
          fi
          unset __conda_setup
          # <<< conda init <<<
          EOF






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 13 at 11:44

























          answered Nov 13 at 11:21









          Manuel

          1612




          1612












          • This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
            – Gatbsy
            Nov 13 at 11:29










          • The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
            – Manuel
            Nov 13 at 11:38










          • Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
            – Manuel
            Nov 13 at 12:25


















          • This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
            – Gatbsy
            Nov 13 at 11:29










          • The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
            – Manuel
            Nov 13 at 11:38










          • Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
            – Manuel
            Nov 13 at 12:25
















          This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
          – Gatbsy
          Nov 13 at 11:29




          This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
          – Gatbsy
          Nov 13 at 11:29












          The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
          – Manuel
          Nov 13 at 11:38




          The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
          – Manuel
          Nov 13 at 11:38












          Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
          – Manuel
          Nov 13 at 12:25




          Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
          – Manuel
          Nov 13 at 12:25










          Gatbsy is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          Gatbsy is a new contributor. Be nice, and check out our Code of Conduct.













          Gatbsy is a new contributor. Be nice, and check out our Code of Conduct.












          Gatbsy is a new contributor. Be nice, and check out our Code of Conduct.















           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1374998%2fhow-do-i-edit-a-line-created-by-an-installer%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

          Сан-Квентин

          8-я гвардейская общевойсковая армия

          Алькесар