Package Details: powershell 7.1.3-1

Git Clone URL: https://aur.archlinux.org/powershell.git (read-only, click to copy)
Package Base: powershell
Description: A cross-platform automation and configuration tool/framework (latest release)
Upstream URL: https://github.com/PowerShell/PowerShell
Keywords: microsoft powershell shell
Licenses: MIT
Submitter: jsteel
Maintainer: kylesferrazza (richardba)
Last Packager: richardba
Votes: 65
Popularity: 0.40
First Submitted: 2016-11-26 22:16
Last Updated: 2021-03-20 03:35

Pinned Comments

plop28 commented on 2021-04-07 11:17

Maybe a fix for certificate expired issue :

downgrade ca-certificates-mozilla to 3.62-1

download the package from https://archive.archlinux.org

sudo pacman -U ca-certificates-mozilla-3.62-1-x86_64.pkg.tar.zst

remove you .nuget folder

then try to rebuild powershell

Works for me, I also installed the latest ca-certificates-mozilla back.

kylesferrazza commented on 2017-10-26 18:01

Note that the binary is now called "pwsh"

Latest Comments

1 2 3 4 5 6 ... Next › Last »

richardba commented on 2021-07-13 08:34

@jammehcow I can't seem to find anything on the powershell GitHub page about it. You could open an issue in the official GitHub page and leave a link with your issue down below.

jammehcow commented on 2021-07-13 08:10

Installing/building will fail when using a non en_US.UTF-8 locale. If you uncomment that locale in /etc/locale.gen and run locale-gen the build should succeed.

cypa commented on 2021-06-14 18:15

this https://github.com/PowerShell/PowerShell/issues/6472

yan12125 commented on 2021-04-15 01:27

Installing https://aur.archlinux.org/packages/ca-certificates-vsign-universal-root/ before building also fixes the build issue.

valandil commented on 2021-04-07 11:27

Indeed. I had an email chat with @richardba, and this bug report came up, which descrbes the workaround you used. It seems that using dotnet restore is broken, and the problem is not explicitly related to the powershell package.

Just need to wait on upstream I believe...

plop28 commented on 2021-04-07 11:17

Maybe a fix for certificate expired issue :

downgrade ca-certificates-mozilla to 3.62-1

download the package from https://archive.archlinux.org

sudo pacman -U ca-certificates-mozilla-3.62-1-x86_64.pkg.tar.zst

remove you .nuget folder

then try to rebuild powershell

Works for me, I also installed the latest ca-certificates-mozilla back.

valandil commented on 2021-03-23 01:36

I am trying to build powershell/7.1.3, but the build fails with a bunch of these errors:

/build/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj : error NU3028: Package 'Microsoft.NETCore.Platforms 2.1.2' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
  Failed to restore /build/powershell/src/powershell/src/powershell-unix/powershell-unix.csproj (in 48.19 sec).

Could this be related to this issue regarding a new cert for NuGet? Does this mean we are blocked from updating until the system ca-certificates is updated?

richardba commented on 2021-01-16 13:11

I am currently trying to update the Version of PowerShell from 7.1.0 to 7.1.1, but I am having some trouble doing so. I am getting some error messages. If anyone wants to try my new PKGBUILD or help with the PKGBUILD, please email me. Here you can find the PKGBUILD. If you have any idea why I am getting the following errors please email me.

/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/System.Management.Automation/System.Management.Automation.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003: The specified task executable "sh" could not be run. System.ComponentModel.Win32Exception (2): No such file or directory [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at System.Diagnostics.Process.Start() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Tasks.Exec.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]
/AUR/powershell/src/powershell/PowerShell.Common.props(17,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [/AUR/powershell/src/powershell/src/Microsoft.PowerShell.MarkdownRender/Microsoft.PowerShell.MarkdownRender.csproj]

richardba commented on 2020-12-22 09:58

@blallo Please make sure you have installed dotnet 5.0. Judging by your error message you have installed version 3.1. I have already contacted the maintainer of the dotnet package and I will be updating the PKGBUILD to require dotnet-sdk-bin>=5 until a separate package is created for the version of dotnet 5.

blallo commented on 2020-12-22 08:08

When updating, today, I got this error

/usr/share/dotnet/sdk/3.1.108/Microsoft.Common.CurrentVersion.targets(1175,5): error MSB3644: The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/home/leo/.cache/pikaur/build/powershell/src/powershell/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj]