Unable to install Universal Server on Ubuntu 20.04.4 with pwsh 7.2.1
Error:
shop@web:~$ pwsh
PS /home/shop> Install-PSUServer
New-Item: Access to the path '/usr/share/PowerShellUniversal/Server' is denied.
in case of:
shop@web:~$ sudo pwsh
Universal server installs successfully, but unable to run in unprivileged pwsh session.
I want to run Universal Server without root privileges on ubuntu server. Is it possible?
Product: PowerShell Universal
Version: 2.8.3
Got the same problem !!
Installing PS Universal 4.1.4 on Amazon AMI 2
amzn2-ami-hvm-2.0.20230926.0-x86_64-gp2
with powerhell 7.3.7
Using the module install-psresource, following the Documentation
(Installation - PowerShell Universal)
Got this error :
PS /usr/bin> Install-PSUServer -LatestVersion -Verbose
VERBOSE: Installing server to /usr/share/PowerShellUniversal/Server
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 5-byte response of content type text/plain
VERBOSE: Downloading version 4.1.4
VERBOSE: HTTP/1.1 GET with 0-byte payload
VERBOSE: received 131933286-byte response of content type application/x-zip-compressed
VERBOSE: Download complete. Unzipping to /usr/share/PowerShellUniversal/Server
New-Item: Access to the path ‘/usr/share/PowerShellUniversal’ is denied.