Skip to content
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

Unable to create profiles for "AllUsers" #103

Open
3 tasks done
edwin61a opened this issue Apr 19, 2024 · 0 comments
Open
3 tasks done

Unable to create profiles for "AllUsers" #103

edwin61a opened this issue Apr 19, 2024 · 0 comments

Comments

@edwin61a
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

I am trying to create a $PROFILE.AllUsersAllHosts profile. It is not possible to create the profile because $PSHOME points to /snap/powershell/264/opt/powershell, which is read-only and therefore $PROFILE.AllUsersAllHosts points to /snap/powershell/264/opt/powershell/profile.ps1 instead of /opt/microsoft/powershell/7/profile.ps1, which is the location if powershell is installed with apt. For Ubuntu 24.04 the apt version is not yet available, it needs package libicu72 (ubuntu 22.04, jammy) while Ubuntu 24.04 uses libicu74 (noble) and libicu72 is not available anymore.

It seems to me that if the snap gets updated to version 265, the profile would be lost, because then $PSHOME would point to /snap/powershell/264/opt/powershell

Expected behavior

It should be possible to create the profiles $PROFILE.AllUsersAllHosts and $PROFILE.AllUsersCurrentHost

Actual behavior

PS> sudo cp ./Projects/PowerShell/profile.allusersallhosts.ps1 $PROFILE.AllUsersAllHosts
cp: cannot create regular file '/snap/powershell/264/opt/powershell/profile.ps1': Read-only file system

Error details

No response

Environment data

PS> $PSVersionTable          

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Ubuntu Noble Numbat (development branch)
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

264

Visuals

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant