You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
installpsh-mariner.sh invoked by the script install-powershell.sh does not work on Azure Linux image. The issue was partially fixed by issue #23944 and PR #23955, but the same change needs to happen in installpsh-mariner.sh too for the issue to fully go away.
To repro:
VM deployed with Azure Linux image (internal image):
When running the install-powershell.sh, it encountered following error:
Get-PowerShell MASTER Installer Version 1.2.0
Installs PowerShell and Optional The Development Environment
Original script is at: https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools\\install-powershell.psh
Arguments used:
Operating System Details:
OS: linux
DIST:
DistroBasedOn: mariner
PSUEDONAME: Azure Linux 3.0
AZURELINUX_BUILD_NUMBER=3.0.20241005
REV: Azure
AZURELINUX_BUILD_NUMBER=3.0.20241005
KERNEL: 6.6.29.1-3.azl3
MACH: x86_64
OSSTR:
Configuring PowerShell Environment for: mariner Azure
AZURELINUX_BUILD_NUMBER=3.0.20241005
Could not find \"installpsh-mariner.sh\" next to this script...
Pulling and executing it from \"https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/installpsh-mariner.sh\"
found and using curl
*** PowerShell Development Environment Installer 1.2.0 for mariner
*** Original script is at: https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/installpsh-mariner.sh
*** Arguments used:
*** This installer is only for mariner and you are running , please run \"https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools\\install-powershell.sh\" to see if your distro is supported AND to auto-select the appropriate installer if it is.
which points to installpsh-mariner.sh needs to check the case -f /etc/azurelinux-release.
Expected behavior
pwsh successfully installed
Actual behavior
Error message *** This installer is only for mariner and you are running , please run \"https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools\\install-powershell.sh\" to see if your distro is supported AND to auto-select the appropriate installer if it is.
### Error details
_No response_
### Environment data
```powershell
N/A since pwsh was not successfully installed
Visuals
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Steps to reproduce
installpsh-mariner.sh invoked by the script
install-powershell.sh
does not work on Azure Linux image. The issue was partially fixed by issue #23944 and PR #23955, but the same change needs to happen ininstallpsh-mariner.sh
too for the issue to fully go away.To repro:
VM deployed with Azure Linux image (internal image):
When running the
install-powershell.sh
, it encountered following error:which points to
installpsh-mariner.sh
needs to check the case-f /etc/azurelinux-release
.Expected behavior
pwsh successfully installed
Actual behavior
Visuals
No response
The text was updated successfully, but these errors were encountered: