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
{{ message }}
Repository navigation
Snap and MSIX install of pwsh on Ubuntu does not support Update-Help #7452
Install powershell-preview on Ubuntu 18.04 using snap i.e.
# snap install powershell-preview --classicFrom pwsh-preview console enter the following command>
PS /home/donhunt>Update-Help-Force
Expected behavior
PowerShell Modules that have updatable help should refresh to latest content
changed the title [-]Snap install of pwsh on Ubuntu does not support Update-Help[/-][+]Snap and MSIX install of pwsh on Ubuntu does not support Update-Help[/+]on Nov 6, 2019
Activity
iSazonov commentedon Aug 6, 2018
/cc Travis Plunk (@TravisEz13) Could you please comment the Issue?
TravisEz13 commentedon Aug 6, 2018
Aditya Patwardhan (@adityapatwardhan) I thought we changed the default target to be the user?
TravisEz13 commentedon Aug 6, 2018
I verified
update-help -Scope CurrentUserfails as well with the same errormegamorf commentedon Nov 17, 2018
Any updates on this?
MaximoTrinidad commentedon Nov 17, 2018
Travis Plunk (@TravisEz13) & Sebastian N. (@megamorf)
Hum! I've been using just:
Without the "-Scope CurrentUser" parameter and is working fine on non-admin session.
Maybe the "-Scope" is not a mandatory parameter.
:)
Never mind!! Only in Windows works OK.
In Ubuntu 18.04, I'm getting the same error too!
MaximoTrinidad commentedon Nov 17, 2018
BTW
You can't even use "sudo" to execute "Update-Help".
This is a bug!
:)

TravisEz13 commentedon Nov 19, 2018
Here is the stack trace:
The problem is
SetDisablePromptToUpdateHelpit always writes to the systemwide setting which are read-only in snap.TylerLeonhardt commentedon May 4, 2019
This might be a good opportunity and excuse to move updatible help and profiles (which have the same problem) outside of pshome
iSazonov commentedon May 4, 2019
Snap allows to write to user home.
Also I guess snap allows to make any directory writable (pshome too).
SteveL-MSFT commentedon May 4, 2019
Please continue discussion in #9278
TravisEz13 commentedon Nov 5, 2019
The problem here is different than #9278. This cmdlet is writing the the WRONG scope even when the scope is specified. We need to fix this issue.
[-]Snap install of pwsh on Ubuntu does not support Update-Help[/-][+]Snap and MSIX install of pwsh on Ubuntu does not support Update-Help[/+]