Powershell , can't install modules

hi i installed powershell via snap , but when i try to install “Install-Module -Name PowerShellGet” its says:
WARNING: The version ‘1.4.7’ of module ‘PackageManagement’ is currently in use. Retry the operation after closing the applications.
WARNING: The version ‘2.2.4.1’ of module ‘PowerShellGet’ is currently in use. Retry the operation after closing the applications.

running the same with -verbose -debug

i get this :
VERBOSE: Installing the dependency module ‘PackageManagement’ with version ‘1.4.7’ for the module ‘PowerShellGet’.
DEBUG: 00:00:16.9881222 In Test-FileInUse function, unable to open the /snap/powershell/137/opt/powershell/Modules/PackageManagement/PackageManagement.format.ps1xml file in ReadWrite access. Exception calling “Open” with “3” argument(s): “Read-only file system”

what i am doing wrong? anyone has a clue?
Thanks in advance
Martin

Hi,

PowerShellGet should be included by default. The powershell snap in stable ships with PowerShellGet version 2.2.4.1, currently. You therefore should not need to manually add it.