How to install powershell on Artful Aardvark 17.10?

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








up vote
-1
down vote

favorite












Because of this bug it's not possible to install powershell from apt for newer Ubuntu versions?



$ cat /etc/apt/sources.list.d/microsoft.list
deb [arch=amd64] https://packages.microsoft.com/ubuntu/14.04/prod trusty main
$ sudo apt install -y powershell
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
powershell : Depends: libicu52 but it is not installable
E: Unable to correct problems, you have held broken packages.


Actually, on closer examination, the documentation clearly states:




Supports Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.04




I'm on 17.10, what should the microsoft.list file look like from an artful system?










share|improve this question



























    up vote
    -1
    down vote

    favorite












    Because of this bug it's not possible to install powershell from apt for newer Ubuntu versions?



    $ cat /etc/apt/sources.list.d/microsoft.list
    deb [arch=amd64] https://packages.microsoft.com/ubuntu/14.04/prod trusty main
    $ sudo apt install -y powershell
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help resolve the situation:

    The following packages have unmet dependencies:
    powershell : Depends: libicu52 but it is not installable
    E: Unable to correct problems, you have held broken packages.


    Actually, on closer examination, the documentation clearly states:




    Supports Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.04




    I'm on 17.10, what should the microsoft.list file look like from an artful system?










    share|improve this question

























      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      Because of this bug it's not possible to install powershell from apt for newer Ubuntu versions?



      $ cat /etc/apt/sources.list.d/microsoft.list
      deb [arch=amd64] https://packages.microsoft.com/ubuntu/14.04/prod trusty main
      $ sudo apt install -y powershell
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help resolve the situation:

      The following packages have unmet dependencies:
      powershell : Depends: libicu52 but it is not installable
      E: Unable to correct problems, you have held broken packages.


      Actually, on closer examination, the documentation clearly states:




      Supports Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.04




      I'm on 17.10, what should the microsoft.list file look like from an artful system?










      share|improve this question















      Because of this bug it's not possible to install powershell from apt for newer Ubuntu versions?



      $ cat /etc/apt/sources.list.d/microsoft.list
      deb [arch=amd64] https://packages.microsoft.com/ubuntu/14.04/prod trusty main
      $ sudo apt install -y powershell
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help resolve the situation:

      The following packages have unmet dependencies:
      powershell : Depends: libicu52 but it is not installable
      E: Unable to correct problems, you have held broken packages.


      Actually, on closer examination, the documentation clearly states:




      Supports Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.04




      I'm on 17.10, what should the microsoft.list file look like from an artful system?







      command-line apt 17.10 microsoft powershell






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 15 at 9:26









      dessert

      20k55795




      20k55795










      asked Feb 15 at 7:54









      Thufir

      1,41984088




      1,41984088




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          You tried to install the package for Ubuntu 14.04, which has libicu52 as a dependency, but Artful (exactly like Zesty) ships with libicu57. At least when it comes to the dependencies, the steps for Ubuntu 17.04 should work for 17.10. Luckily, Microsoft provides a prod.list file for 17.10 and 18.04 as well:



          # Import the public repository GPG keys
          curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

          # Register the Microsoft Ubuntu repository – use your exact release only!
          curl https://packages.microsoft.com/config/ubuntu/17.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/17.10/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list

          # Update the list of products
          sudo apt update

          # Install PowerShell
          sudo apt install powershell

          # Start PowerShell
          pwsh





          share|improve this answer






















          • Thanks @dessert, asking at askubuntu.com/q/1040028/439867
            – Peter Krauss
            May 25 at 0:13










          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%2f1006379%2fhow-to-install-powershell-on-artful-aardvark-17-10%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
          3
          down vote



          accepted










          You tried to install the package for Ubuntu 14.04, which has libicu52 as a dependency, but Artful (exactly like Zesty) ships with libicu57. At least when it comes to the dependencies, the steps for Ubuntu 17.04 should work for 17.10. Luckily, Microsoft provides a prod.list file for 17.10 and 18.04 as well:



          # Import the public repository GPG keys
          curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

          # Register the Microsoft Ubuntu repository – use your exact release only!
          curl https://packages.microsoft.com/config/ubuntu/17.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/17.10/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list

          # Update the list of products
          sudo apt update

          # Install PowerShell
          sudo apt install powershell

          # Start PowerShell
          pwsh





          share|improve this answer






















          • Thanks @dessert, asking at askubuntu.com/q/1040028/439867
            – Peter Krauss
            May 25 at 0:13














          up vote
          3
          down vote



          accepted










          You tried to install the package for Ubuntu 14.04, which has libicu52 as a dependency, but Artful (exactly like Zesty) ships with libicu57. At least when it comes to the dependencies, the steps for Ubuntu 17.04 should work for 17.10. Luckily, Microsoft provides a prod.list file for 17.10 and 18.04 as well:



          # Import the public repository GPG keys
          curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

          # Register the Microsoft Ubuntu repository – use your exact release only!
          curl https://packages.microsoft.com/config/ubuntu/17.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/17.10/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list

          # Update the list of products
          sudo apt update

          # Install PowerShell
          sudo apt install powershell

          # Start PowerShell
          pwsh





          share|improve this answer






















          • Thanks @dessert, asking at askubuntu.com/q/1040028/439867
            – Peter Krauss
            May 25 at 0:13












          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          You tried to install the package for Ubuntu 14.04, which has libicu52 as a dependency, but Artful (exactly like Zesty) ships with libicu57. At least when it comes to the dependencies, the steps for Ubuntu 17.04 should work for 17.10. Luckily, Microsoft provides a prod.list file for 17.10 and 18.04 as well:



          # Import the public repository GPG keys
          curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

          # Register the Microsoft Ubuntu repository – use your exact release only!
          curl https://packages.microsoft.com/config/ubuntu/17.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/17.10/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list

          # Update the list of products
          sudo apt update

          # Install PowerShell
          sudo apt install powershell

          # Start PowerShell
          pwsh





          share|improve this answer














          You tried to install the package for Ubuntu 14.04, which has libicu52 as a dependency, but Artful (exactly like Zesty) ships with libicu57. At least when it comes to the dependencies, the steps for Ubuntu 17.04 should work for 17.10. Luckily, Microsoft provides a prod.list file for 17.10 and 18.04 as well:



          # Import the public repository GPG keys
          curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

          # Register the Microsoft Ubuntu repository – use your exact release only!
          curl https://packages.microsoft.com/config/ubuntu/17.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/17.10/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
          curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list

          # Update the list of products
          sudo apt update

          # Install PowerShell
          sudo apt install powershell

          # Start PowerShell
          pwsh






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 24 at 21:51

























          answered Feb 15 at 8:53









          dessert

          20k55795




          20k55795











          • Thanks @dessert, asking at askubuntu.com/q/1040028/439867
            – Peter Krauss
            May 25 at 0:13
















          • Thanks @dessert, asking at askubuntu.com/q/1040028/439867
            – Peter Krauss
            May 25 at 0:13















          Thanks @dessert, asking at askubuntu.com/q/1040028/439867
          – Peter Krauss
          May 25 at 0:13




          Thanks @dessert, asking at askubuntu.com/q/1040028/439867
          – Peter Krauss
          May 25 at 0:13

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006379%2fhow-to-install-powershell-on-artful-aardvark-17-10%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?