You might want to take a look at this: Unable to resolve package source 'https://www.powershellgallery.com/api/v2' · Issue #153 · PowerShell/PowerShellGallery · GitHub
There are people pointing to issues with TLS. One person resolved by setting TLS to 1.2. Another (at the bottom of the thread) disabled 1.0.
--
John Wright
IT Support Specialist
1800 Old Bluegrass Avenue, Louisville, KY 40215
Please submit IT requests to Hazelwoo...@bluegrass.org
24 Hour Helpline 1.800.928.8000
CONFIDENTIALITY NOTICE: This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited.
From: ntpowe...@googlegroups.com <ntpowe...@googlegroups.com>
On Behalf Of Kurt Buff
Sent: Friday, November 3, 2023 9:03 PM
To: ntpowe...@googlegroups.com
Subject: [ntpowershell] Don't know where else to ask this i it's not really Windows
This message is from an external sender. |
--
You received this message because you are subscribed to the Google Groups "ntpowershell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntpowershell...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ntpowershell/CADy1Ce7OqgMXUs63r2ko5WXY0Eeiy0U0RCoUEfi7psjBgzsV6A%40mail.gmail.com.
[CAUTION] Do not click on links or open attachments unless you recognize the sender and know the content is safe. |
For PSRepository, just set the installationpolicy. The sourcelocation was already accurate.
set-psrepository -name PSGallery -InstallationPolicy Trusted
>> but when I do this (running under my non-root account):
>> install-module -name <blah>
You probably need “-scope currentuser”.
But I don’t have a ubuntu vm hanging around right now to test it.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/DM6PR12MB4372E6B9B875549ED0733C7691AAA%40DM6PR12MB4372.namprd12.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/DM6PR12MB4372E6B9B875549ED0733C7691AAA%40DM6PR12MB4372.namprd12.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/41a8dfe3f5bc465db9afc970aa7181d3%40smithcons.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/CADy1Ce51GCNN3Z_0ospbXxtFL6ApETARpN%2Bpk8gxG-km2Z_12A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/CALZMb6qBfz_fw%3DpHDegtd%2Boc4GxYFUNRS%3D44BR2c6VnB4yGWbg%40mail.gmail.com.