Installing PowerShell on 32-bit Kali OS fails












7















I am having some issues installing PowerShell on my 32-bit Kali Linux PC. 
I followed this guide and started with:



apt update && apt -y install curl gnupg apt-transport-https


Next, I downloaded and added the public repository GPG key so APT will trust the packages and alert the user to any issues with package signatures.



curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -


With the GPG key added, I added the Microsoft package repository to its own package list file under /etc/apt/sources.list.d/ and updated the list of available packages.



echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" 
> /etc/apt/sources.list.d/powershell.list
apt update


No errors so far indicated in the update process, Microsoft sources are in my source.list, and everything should be good to go.



When I execute:



apt -y install powershell


I get:



root@kali:/opt# apt -y install powershell
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package powershell









share|improve this question




















  • 3





    what does apt-cache search powershell show you?

    – Tim Kennedy
    yesterday






  • 3





    browsing that repo, I see "powershell" listed; do you have an amd64 system? (uname -m)

    – Jeff Schaller
    yesterday






  • 1





    @JeffSchaller I'm i686.

    – WeAreOne
    yesterday






  • 1





    @WeAreOne, it does not seem that Microsoft supports powershell for 32-bit architecture on Linux.

    – kemotep
    yesterday






  • 1





    @kemotep See also, github.com/PowerShell/PowerShell/issues/4707 and github.com/PowerShell/PowerShell/issues/7659 -- looks like it depends on .NET Core too

    – Bob
    19 hours ago


















7















I am having some issues installing PowerShell on my 32-bit Kali Linux PC. 
I followed this guide and started with:



apt update && apt -y install curl gnupg apt-transport-https


Next, I downloaded and added the public repository GPG key so APT will trust the packages and alert the user to any issues with package signatures.



curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -


With the GPG key added, I added the Microsoft package repository to its own package list file under /etc/apt/sources.list.d/ and updated the list of available packages.



echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" 
> /etc/apt/sources.list.d/powershell.list
apt update


No errors so far indicated in the update process, Microsoft sources are in my source.list, and everything should be good to go.



When I execute:



apt -y install powershell


I get:



root@kali:/opt# apt -y install powershell
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package powershell









share|improve this question




















  • 3





    what does apt-cache search powershell show you?

    – Tim Kennedy
    yesterday






  • 3





    browsing that repo, I see "powershell" listed; do you have an amd64 system? (uname -m)

    – Jeff Schaller
    yesterday






  • 1





    @JeffSchaller I'm i686.

    – WeAreOne
    yesterday






  • 1





    @WeAreOne, it does not seem that Microsoft supports powershell for 32-bit architecture on Linux.

    – kemotep
    yesterday






  • 1





    @kemotep See also, github.com/PowerShell/PowerShell/issues/4707 and github.com/PowerShell/PowerShell/issues/7659 -- looks like it depends on .NET Core too

    – Bob
    19 hours ago
















7












7








7








I am having some issues installing PowerShell on my 32-bit Kali Linux PC. 
I followed this guide and started with:



apt update && apt -y install curl gnupg apt-transport-https


Next, I downloaded and added the public repository GPG key so APT will trust the packages and alert the user to any issues with package signatures.



curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -


With the GPG key added, I added the Microsoft package repository to its own package list file under /etc/apt/sources.list.d/ and updated the list of available packages.



echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" 
> /etc/apt/sources.list.d/powershell.list
apt update


No errors so far indicated in the update process, Microsoft sources are in my source.list, and everything should be good to go.



When I execute:



apt -y install powershell


I get:



root@kali:/opt# apt -y install powershell
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package powershell









share|improve this question
















I am having some issues installing PowerShell on my 32-bit Kali Linux PC. 
I followed this guide and started with:



apt update && apt -y install curl gnupg apt-transport-https


Next, I downloaded and added the public repository GPG key so APT will trust the packages and alert the user to any issues with package signatures.



curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -


With the GPG key added, I added the Microsoft package repository to its own package list file under /etc/apt/sources.list.d/ and updated the list of available packages.



echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" 
> /etc/apt/sources.list.d/powershell.list
apt update


No errors so far indicated in the update process, Microsoft sources are in my source.list, and everything should be good to go.



When I execute:



apt -y install powershell


I get:



root@kali:/opt# apt -y install powershell
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package powershell






software-installation kali-linux 32bit powershell






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 23 hours ago









G-Man

13.6k93769




13.6k93769










asked yesterday









WeAreOneWeAreOne

552




552








  • 3





    what does apt-cache search powershell show you?

    – Tim Kennedy
    yesterday






  • 3





    browsing that repo, I see "powershell" listed; do you have an amd64 system? (uname -m)

    – Jeff Schaller
    yesterday






  • 1





    @JeffSchaller I'm i686.

    – WeAreOne
    yesterday






  • 1





    @WeAreOne, it does not seem that Microsoft supports powershell for 32-bit architecture on Linux.

    – kemotep
    yesterday






  • 1





    @kemotep See also, github.com/PowerShell/PowerShell/issues/4707 and github.com/PowerShell/PowerShell/issues/7659 -- looks like it depends on .NET Core too

    – Bob
    19 hours ago
















  • 3





    what does apt-cache search powershell show you?

    – Tim Kennedy
    yesterday






  • 3





    browsing that repo, I see "powershell" listed; do you have an amd64 system? (uname -m)

    – Jeff Schaller
    yesterday






  • 1





    @JeffSchaller I'm i686.

    – WeAreOne
    yesterday






  • 1





    @WeAreOne, it does not seem that Microsoft supports powershell for 32-bit architecture on Linux.

    – kemotep
    yesterday






  • 1





    @kemotep See also, github.com/PowerShell/PowerShell/issues/4707 and github.com/PowerShell/PowerShell/issues/7659 -- looks like it depends on .NET Core too

    – Bob
    19 hours ago










3




3





what does apt-cache search powershell show you?

– Tim Kennedy
yesterday





what does apt-cache search powershell show you?

– Tim Kennedy
yesterday




3




3





browsing that repo, I see "powershell" listed; do you have an amd64 system? (uname -m)

– Jeff Schaller
yesterday





browsing that repo, I see "powershell" listed; do you have an amd64 system? (uname -m)

– Jeff Schaller
yesterday




1




1





@JeffSchaller I'm i686.

– WeAreOne
yesterday





@JeffSchaller I'm i686.

– WeAreOne
yesterday




1




1





@WeAreOne, it does not seem that Microsoft supports powershell for 32-bit architecture on Linux.

– kemotep
yesterday





@WeAreOne, it does not seem that Microsoft supports powershell for 32-bit architecture on Linux.

– kemotep
yesterday




1




1





@kemotep See also, github.com/PowerShell/PowerShell/issues/4707 and github.com/PowerShell/PowerShell/issues/7659 -- looks like it depends on .NET Core too

– Bob
19 hours ago







@kemotep See also, github.com/PowerShell/PowerShell/issues/4707 and github.com/PowerShell/PowerShell/issues/7659 -- looks like it depends on .NET Core too

– Bob
19 hours ago












2 Answers
2






active

oldest

votes


















14














You have successfully added the repository for Powershell to your sources.list.



However, you report to be using a 32-bit architecture system. Your output of apt-cache confirms that your Repositories do not contain the Powershell package.



Taking a look at the Powershell GitHub, it appears that Microsoft does not provide a Linux package for Powershell for 32-bit Linux systems. All of the source and binary packages available for Linux here are for 64-bit systems.



As user Bob points out in his comment, Powershell for Linux depends on .Net Core.



If you are familiar with building from source, you could potentially build a 32-bit package, but that is a different kind of question. This may not actually work as Powershell maybe has hard requirements for 64-bit instructions and optimizations.






share|improve this answer

































    1














    You’ve added the PowerShell repository, but it only provides amd64 binaries (as indicated by the architecture qualifier Microsoft tell you to include). You can’t run the binaries on your 32-bit system... That is, unless your CPU supports 64-bit mode (which you can check by looking for lm in the processor flags in /proc/cpuinfo) and you configure your system appropriately.



    (If you’re running a live Kali system, you might as well reboot into a 64-bit Kali setup instead.)



    The following instructions aren’t Kali-specific, they will work on any Debian derivative.



    To add 64-bit support:





    • enable amd64:



      dpkg --add-architecture amd64



    • ensure your system is up-to-date:



      apt update && apt upgade



    • install the appropriate kernel (this will vary, depending on the installed distribution and the currently-valid kernel; run uname -r to get an idea of the package name to use):



      apt install linux-image-4.19.0-kali4-amd64


    • reboot, and in the advanced options in the Grub menu, choose the amd64 kernel



    • since Microsoft’s PowerShell repository is based on Debian 9, you may need to add the corresponding repository (this isn’t typically recommended in Kali setups, but Kali themselves document it, so...):



      echo deb http://deb.debian.org/debian stretch main > /etc/apt/sources.list.d/stretch.list


      (this is now necessary on Kali because the libicu57 package is no longer available there, so you’d have to do this even if you were following the Kali PowerShell installation guide)




    • update again and install PowerShell:



      apt update && apt install powershell



    Now you’ll still be running a mostly 32-bit install, but with the ability to install 64-bit packages where necessary.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      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: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      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%2funix.stackexchange.com%2fquestions%2f508581%2finstalling-powershell-on-32-bit-kali-os-fails%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      14














      You have successfully added the repository for Powershell to your sources.list.



      However, you report to be using a 32-bit architecture system. Your output of apt-cache confirms that your Repositories do not contain the Powershell package.



      Taking a look at the Powershell GitHub, it appears that Microsoft does not provide a Linux package for Powershell for 32-bit Linux systems. All of the source and binary packages available for Linux here are for 64-bit systems.



      As user Bob points out in his comment, Powershell for Linux depends on .Net Core.



      If you are familiar with building from source, you could potentially build a 32-bit package, but that is a different kind of question. This may not actually work as Powershell maybe has hard requirements for 64-bit instructions and optimizations.






      share|improve this answer






























        14














        You have successfully added the repository for Powershell to your sources.list.



        However, you report to be using a 32-bit architecture system. Your output of apt-cache confirms that your Repositories do not contain the Powershell package.



        Taking a look at the Powershell GitHub, it appears that Microsoft does not provide a Linux package for Powershell for 32-bit Linux systems. All of the source and binary packages available for Linux here are for 64-bit systems.



        As user Bob points out in his comment, Powershell for Linux depends on .Net Core.



        If you are familiar with building from source, you could potentially build a 32-bit package, but that is a different kind of question. This may not actually work as Powershell maybe has hard requirements for 64-bit instructions and optimizations.






        share|improve this answer




























          14












          14








          14







          You have successfully added the repository for Powershell to your sources.list.



          However, you report to be using a 32-bit architecture system. Your output of apt-cache confirms that your Repositories do not contain the Powershell package.



          Taking a look at the Powershell GitHub, it appears that Microsoft does not provide a Linux package for Powershell for 32-bit Linux systems. All of the source and binary packages available for Linux here are for 64-bit systems.



          As user Bob points out in his comment, Powershell for Linux depends on .Net Core.



          If you are familiar with building from source, you could potentially build a 32-bit package, but that is a different kind of question. This may not actually work as Powershell maybe has hard requirements for 64-bit instructions and optimizations.






          share|improve this answer















          You have successfully added the repository for Powershell to your sources.list.



          However, you report to be using a 32-bit architecture system. Your output of apt-cache confirms that your Repositories do not contain the Powershell package.



          Taking a look at the Powershell GitHub, it appears that Microsoft does not provide a Linux package for Powershell for 32-bit Linux systems. All of the source and binary packages available for Linux here are for 64-bit systems.



          As user Bob points out in his comment, Powershell for Linux depends on .Net Core.



          If you are familiar with building from source, you could potentially build a 32-bit package, but that is a different kind of question. This may not actually work as Powershell maybe has hard requirements for 64-bit instructions and optimizations.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 18 hours ago

























          answered yesterday









          kemotepkemotep

          2,6083823




          2,6083823

























              1














              You’ve added the PowerShell repository, but it only provides amd64 binaries (as indicated by the architecture qualifier Microsoft tell you to include). You can’t run the binaries on your 32-bit system... That is, unless your CPU supports 64-bit mode (which you can check by looking for lm in the processor flags in /proc/cpuinfo) and you configure your system appropriately.



              (If you’re running a live Kali system, you might as well reboot into a 64-bit Kali setup instead.)



              The following instructions aren’t Kali-specific, they will work on any Debian derivative.



              To add 64-bit support:





              • enable amd64:



                dpkg --add-architecture amd64



              • ensure your system is up-to-date:



                apt update && apt upgade



              • install the appropriate kernel (this will vary, depending on the installed distribution and the currently-valid kernel; run uname -r to get an idea of the package name to use):



                apt install linux-image-4.19.0-kali4-amd64


              • reboot, and in the advanced options in the Grub menu, choose the amd64 kernel



              • since Microsoft’s PowerShell repository is based on Debian 9, you may need to add the corresponding repository (this isn’t typically recommended in Kali setups, but Kali themselves document it, so...):



                echo deb http://deb.debian.org/debian stretch main > /etc/apt/sources.list.d/stretch.list


                (this is now necessary on Kali because the libicu57 package is no longer available there, so you’d have to do this even if you were following the Kali PowerShell installation guide)




              • update again and install PowerShell:



                apt update && apt install powershell



              Now you’ll still be running a mostly 32-bit install, but with the ability to install 64-bit packages where necessary.






              share|improve this answer




























                1














                You’ve added the PowerShell repository, but it only provides amd64 binaries (as indicated by the architecture qualifier Microsoft tell you to include). You can’t run the binaries on your 32-bit system... That is, unless your CPU supports 64-bit mode (which you can check by looking for lm in the processor flags in /proc/cpuinfo) and you configure your system appropriately.



                (If you’re running a live Kali system, you might as well reboot into a 64-bit Kali setup instead.)



                The following instructions aren’t Kali-specific, they will work on any Debian derivative.



                To add 64-bit support:





                • enable amd64:



                  dpkg --add-architecture amd64



                • ensure your system is up-to-date:



                  apt update && apt upgade



                • install the appropriate kernel (this will vary, depending on the installed distribution and the currently-valid kernel; run uname -r to get an idea of the package name to use):



                  apt install linux-image-4.19.0-kali4-amd64


                • reboot, and in the advanced options in the Grub menu, choose the amd64 kernel



                • since Microsoft’s PowerShell repository is based on Debian 9, you may need to add the corresponding repository (this isn’t typically recommended in Kali setups, but Kali themselves document it, so...):



                  echo deb http://deb.debian.org/debian stretch main > /etc/apt/sources.list.d/stretch.list


                  (this is now necessary on Kali because the libicu57 package is no longer available there, so you’d have to do this even if you were following the Kali PowerShell installation guide)




                • update again and install PowerShell:



                  apt update && apt install powershell



                Now you’ll still be running a mostly 32-bit install, but with the ability to install 64-bit packages where necessary.






                share|improve this answer


























                  1












                  1








                  1







                  You’ve added the PowerShell repository, but it only provides amd64 binaries (as indicated by the architecture qualifier Microsoft tell you to include). You can’t run the binaries on your 32-bit system... That is, unless your CPU supports 64-bit mode (which you can check by looking for lm in the processor flags in /proc/cpuinfo) and you configure your system appropriately.



                  (If you’re running a live Kali system, you might as well reboot into a 64-bit Kali setup instead.)



                  The following instructions aren’t Kali-specific, they will work on any Debian derivative.



                  To add 64-bit support:





                  • enable amd64:



                    dpkg --add-architecture amd64



                  • ensure your system is up-to-date:



                    apt update && apt upgade



                  • install the appropriate kernel (this will vary, depending on the installed distribution and the currently-valid kernel; run uname -r to get an idea of the package name to use):



                    apt install linux-image-4.19.0-kali4-amd64


                  • reboot, and in the advanced options in the Grub menu, choose the amd64 kernel



                  • since Microsoft’s PowerShell repository is based on Debian 9, you may need to add the corresponding repository (this isn’t typically recommended in Kali setups, but Kali themselves document it, so...):



                    echo deb http://deb.debian.org/debian stretch main > /etc/apt/sources.list.d/stretch.list


                    (this is now necessary on Kali because the libicu57 package is no longer available there, so you’d have to do this even if you were following the Kali PowerShell installation guide)




                  • update again and install PowerShell:



                    apt update && apt install powershell



                  Now you’ll still be running a mostly 32-bit install, but with the ability to install 64-bit packages where necessary.






                  share|improve this answer













                  You’ve added the PowerShell repository, but it only provides amd64 binaries (as indicated by the architecture qualifier Microsoft tell you to include). You can’t run the binaries on your 32-bit system... That is, unless your CPU supports 64-bit mode (which you can check by looking for lm in the processor flags in /proc/cpuinfo) and you configure your system appropriately.



                  (If you’re running a live Kali system, you might as well reboot into a 64-bit Kali setup instead.)



                  The following instructions aren’t Kali-specific, they will work on any Debian derivative.



                  To add 64-bit support:





                  • enable amd64:



                    dpkg --add-architecture amd64



                  • ensure your system is up-to-date:



                    apt update && apt upgade



                  • install the appropriate kernel (this will vary, depending on the installed distribution and the currently-valid kernel; run uname -r to get an idea of the package name to use):



                    apt install linux-image-4.19.0-kali4-amd64


                  • reboot, and in the advanced options in the Grub menu, choose the amd64 kernel



                  • since Microsoft’s PowerShell repository is based on Debian 9, you may need to add the corresponding repository (this isn’t typically recommended in Kali setups, but Kali themselves document it, so...):



                    echo deb http://deb.debian.org/debian stretch main > /etc/apt/sources.list.d/stretch.list


                    (this is now necessary on Kali because the libicu57 package is no longer available there, so you’d have to do this even if you were following the Kali PowerShell installation guide)




                  • update again and install PowerShell:



                    apt update && apt install powershell



                  Now you’ll still be running a mostly 32-bit install, but with the ability to install 64-bit packages where necessary.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 10 hours ago









                  Stephen KittStephen Kitt

                  178k24403481




                  178k24403481






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • 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%2funix.stackexchange.com%2fquestions%2f508581%2finstalling-powershell-on-32-bit-kali-os-fails%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

                      He _____ here since 1970 . Answer needed [closed]What does “since he was so high” mean?Meaning of “catch birds for”?How do I ensure “since” takes the meaning I want?“Who cares here” meaningWhat does “right round toward” mean?the time tense (had now been detected)What does the phrase “ring around the roses” mean here?Correct usage of “visited upon”Meaning of “foiled rail sabotage bid”It was the third time I had gone to Rome or It is the third time I had been to Rome

                      Bunad

                      Færeyskur hestur Heimild | Tengill | Tilvísanir | LeiðsagnarvalRossið - síða um færeyska hrossið á færeyskuGott ár hjá færeyska hestinum