Error while installing Node Js Legacy in ubuntu?












0















When I try to run this command



sudo apt-get install nodejs-legacy


it gives it as




Reading package lists... Done Building dependency tree Reading
state information... Done Package nodejs-legacy is not available, but
is referred to by another package. This may mean that the package is
missing, has been obsoleted, or is only available from another source
However the following packages replace it: nodejs:i386 nodejs




How to get a workaround from this? I can't find a proper fix anywhere.










share|improve this question



























    0















    When I try to run this command



    sudo apt-get install nodejs-legacy


    it gives it as




    Reading package lists... Done Building dependency tree Reading
    state information... Done Package nodejs-legacy is not available, but
    is referred to by another package. This may mean that the package is
    missing, has been obsoleted, or is only available from another source
    However the following packages replace it: nodejs:i386 nodejs




    How to get a workaround from this? I can't find a proper fix anywhere.










    share|improve this question

























      0












      0








      0








      When I try to run this command



      sudo apt-get install nodejs-legacy


      it gives it as




      Reading package lists... Done Building dependency tree Reading
      state information... Done Package nodejs-legacy is not available, but
      is referred to by another package. This may mean that the package is
      missing, has been obsoleted, or is only available from another source
      However the following packages replace it: nodejs:i386 nodejs




      How to get a workaround from this? I can't find a proper fix anywhere.










      share|improve this question














      When I try to run this command



      sudo apt-get install nodejs-legacy


      it gives it as




      Reading package lists... Done Building dependency tree Reading
      state information... Done Package nodejs-legacy is not available, but
      is referred to by another package. This may mean that the package is
      missing, has been obsoleted, or is only available from another source
      However the following packages replace it: nodejs:i386 nodejs




      How to get a workaround from this? I can't find a proper fix anywhere.







      apt nodejs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 24 '18 at 17:19









      HumbleHumble

      31




      31






















          1 Answer
          1






          active

          oldest

          votes


















          0














          The nodejs-legacy package simply installs a symbolic link so that it can be executed using the node command.



          curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
          sudo apt-get install -y nodejs nodejs-legacy





          share|improve this answer
























          • Hello it works but while installing it shows this on running second commandsudo apt-get install -y nodejs nodejs-legacy Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'nodejs' instead of 'nodejs-legacy' The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 1107 not upgraded. Need to get 13.5 MB of archives. After this operation, 64.0 MB of additional disk space will be used. Like I need legacy one not nodejs

            – Humble
            Sep 24 '18 at 17:27













          • Literally all the nodejs-legacy package does is create a symbolic link so that the command node runs the command nodejs - if you're trying to install an older version of nodejs the "legacy" package doesn't do this.

            – Kristopher Ives
            Sep 24 '18 at 17:37











          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%2f1078091%2ferror-while-installing-node-js-legacy-in-ubuntu%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














          The nodejs-legacy package simply installs a symbolic link so that it can be executed using the node command.



          curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
          sudo apt-get install -y nodejs nodejs-legacy





          share|improve this answer
























          • Hello it works but while installing it shows this on running second commandsudo apt-get install -y nodejs nodejs-legacy Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'nodejs' instead of 'nodejs-legacy' The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 1107 not upgraded. Need to get 13.5 MB of archives. After this operation, 64.0 MB of additional disk space will be used. Like I need legacy one not nodejs

            – Humble
            Sep 24 '18 at 17:27













          • Literally all the nodejs-legacy package does is create a symbolic link so that the command node runs the command nodejs - if you're trying to install an older version of nodejs the "legacy" package doesn't do this.

            – Kristopher Ives
            Sep 24 '18 at 17:37
















          0














          The nodejs-legacy package simply installs a symbolic link so that it can be executed using the node command.



          curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
          sudo apt-get install -y nodejs nodejs-legacy





          share|improve this answer
























          • Hello it works but while installing it shows this on running second commandsudo apt-get install -y nodejs nodejs-legacy Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'nodejs' instead of 'nodejs-legacy' The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 1107 not upgraded. Need to get 13.5 MB of archives. After this operation, 64.0 MB of additional disk space will be used. Like I need legacy one not nodejs

            – Humble
            Sep 24 '18 at 17:27













          • Literally all the nodejs-legacy package does is create a symbolic link so that the command node runs the command nodejs - if you're trying to install an older version of nodejs the "legacy" package doesn't do this.

            – Kristopher Ives
            Sep 24 '18 at 17:37














          0












          0








          0







          The nodejs-legacy package simply installs a symbolic link so that it can be executed using the node command.



          curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
          sudo apt-get install -y nodejs nodejs-legacy





          share|improve this answer













          The nodejs-legacy package simply installs a symbolic link so that it can be executed using the node command.



          curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
          sudo apt-get install -y nodejs nodejs-legacy






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 24 '18 at 17:21









          Kristopher IvesKristopher Ives

          2,83111525




          2,83111525













          • Hello it works but while installing it shows this on running second commandsudo apt-get install -y nodejs nodejs-legacy Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'nodejs' instead of 'nodejs-legacy' The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 1107 not upgraded. Need to get 13.5 MB of archives. After this operation, 64.0 MB of additional disk space will be used. Like I need legacy one not nodejs

            – Humble
            Sep 24 '18 at 17:27













          • Literally all the nodejs-legacy package does is create a symbolic link so that the command node runs the command nodejs - if you're trying to install an older version of nodejs the "legacy" package doesn't do this.

            – Kristopher Ives
            Sep 24 '18 at 17:37



















          • Hello it works but while installing it shows this on running second commandsudo apt-get install -y nodejs nodejs-legacy Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'nodejs' instead of 'nodejs-legacy' The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 1107 not upgraded. Need to get 13.5 MB of archives. After this operation, 64.0 MB of additional disk space will be used. Like I need legacy one not nodejs

            – Humble
            Sep 24 '18 at 17:27













          • Literally all the nodejs-legacy package does is create a symbolic link so that the command node runs the command nodejs - if you're trying to install an older version of nodejs the "legacy" package doesn't do this.

            – Kristopher Ives
            Sep 24 '18 at 17:37

















          Hello it works but while installing it shows this on running second commandsudo apt-get install -y nodejs nodejs-legacy Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'nodejs' instead of 'nodejs-legacy' The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 1107 not upgraded. Need to get 13.5 MB of archives. After this operation, 64.0 MB of additional disk space will be used. Like I need legacy one not nodejs

          – Humble
          Sep 24 '18 at 17:27







          Hello it works but while installing it shows this on running second commandsudo apt-get install -y nodejs nodejs-legacy Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'nodejs' instead of 'nodejs-legacy' The following NEW packages will be installed: nodejs 0 upgraded, 1 newly installed, 0 to remove and 1107 not upgraded. Need to get 13.5 MB of archives. After this operation, 64.0 MB of additional disk space will be used. Like I need legacy one not nodejs

          – Humble
          Sep 24 '18 at 17:27















          Literally all the nodejs-legacy package does is create a symbolic link so that the command node runs the command nodejs - if you're trying to install an older version of nodejs the "legacy" package doesn't do this.

          – Kristopher Ives
          Sep 24 '18 at 17:37





          Literally all the nodejs-legacy package does is create a symbolic link so that the command node runs the command nodejs - if you're trying to install an older version of nodejs the "legacy" package doesn't do this.

          – Kristopher Ives
          Sep 24 '18 at 17:37


















          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%2f1078091%2ferror-while-installing-node-js-legacy-in-ubuntu%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?

          張江高科駅