Skip to content

installpsh-mariner.sh does not work on Azure Linux #24412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
5 tasks done
nanma321 opened this issue Oct 10, 2024 · 4 comments
Open
5 tasks done

installpsh-mariner.sh does not work on Azure Linux #24412

nanma321 opened this issue Oct 10, 2024 · 4 comments
Labels
Needs-Triage The issue is new and needs to be triaged by a work group.

Comments

@nanma321
Copy link

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 in installpsh-mariner.sh too for the issue to fully go away.

To repro:
VM deployed with Azure Linux image (internal image):

"imageReference": {
      "publisher": "MicrosoftCBLMariner",
      "offer": "azure-linux",
      "sku": "azure-linux-gen2",
      "version": "latest"
  }

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

@nanma321 nanma321 added the Needs-Triage The issue is new and needs to be triaged by a work group. label Oct 10, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@kunalmitra12
Copy link

+1, still running into this issue

@kunalmitra12
Copy link

Did you find a fix? @nanma321

@nanma321
Copy link
Author

nanma321 commented Apr 16, 2025

@kunalmitra12 I created a PR #25369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group.
Projects
None yet
Development

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy