question

NicholasDechert avatar image
0 Votes"
NicholasDechert asked NicholasDechert answered

NanoServer 2016, unable to search packages with Find-Package -ProviderName NanoServerPackage

[10.7.7.150]: PS C:\Users\Administrator\Documents> Find-Package -ProviderName NanoServerPackage -Name * -Verbose

VERBOSE: Importing package provider 'NanoServerPackage'.
VERBOSE: Using the provider 'NanoServerPackage' for searching packages.
VERBOSE: Downloading https://nanoserverpackage.blob.core.windows.net/nanoserver-ga-2016/searchNanoServerIndex.txt to
C:\Users\Administrator\AppData\Local\NanoServerPackageProvider\searchNanoPackageIndex.txt
WARNING: Cannot find path 'C:\Users\Administrator\AppData\Local\NanoServerPackageProvider\searchNanoPackageIndex.txt'
because it does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State: BG_JOB_STATE_ERROR ExitCode = 0
VERBOSE: No package found matching '*'.

Above is my command and the error that I get. This is a fresh install of NanoServer 2016, and I used Save-Module to get the NanoServerPackage provider (as described here. However that URL it queries, https://nanoserverpackage.blob.core.windows.net/nanoserver-ga-2016/searchNanoServerIndex.txt, doesn't seem to have any file or data in it. Using a normal web browser to go there gives a "ResourceNotFound" error. Is the online repository part of NanoServer 2016 dead?

I need this as part of a work training course, I don't have control over the content or assignments.


windows-server-2016
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@NicholasDechert
Hi,

Just checking in to see if the information provided was helpful.

If the reply helped you, please remember to accept as answer.
If no, please reply and tell us the current situation in order to provide further help.

0 Votes 0 ·

@NicholasDechert
Hi,

We have not get information from you for several days.

If the reply is useful for you, please accept as answer. It will be helpful to other members who have same questions.
If you have any other confuse, please reply to us directly.

0 Votes 0 ·
NicholasDechert avatar image
0 Votes"
NicholasDechert answered

Microsoft has discontinued support for online repositories in the base image of NanoServer. It is supported only through containers now

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JennyFeng-MSFT avatar image
0 Votes"
JennyFeng-MSFT answered JennyFeng-MSFT commented

@NicholasDechert
Hi,
Yes. The PowerShell module in Nano Server is gone from the objectives.
Starting in Windows Server, version 1709, Nano Server will be available only as a container base OS image.
PowerShell Core, .NET Core, and WMI are no longer included by default.

Based on the error the package isn't available, it is searching the wrong provider & the wrong provider is looking up into wrong Repository.

Please Check out Changes to Nano Server to learn what this means:
https://docs.microsoft.com/en-us/windows-server/get-started/nano-in-semi-annual-channel

Hope above information can help you.

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

I understand the PowerShell module in Nano Server is gone from the test objectives for a certificate, but I am working on something that is not the certificate. I just need to confirm to show my trainer, should the command Find-Package -ProviderName NanoServerPackage -Name * return any packages, or is the error that it gives above the expected output?

I understand it is only a container base image in 1709, but I think my training course may not be up to date with that.

0 Votes 0 ·

It may be a known issue around BITS transfer failing when used over a PS Direct session, the recommended method is to use PS Remoting.
https://github.com/OneGet/NanoServerPackage/issues/3

0 Votes 0 ·

This happens even with PS Remoting, which I believe is expected because I do not get any data when I navigate to that website using a web browser

97194-image.png


0 Votes 0 ·
image.png (20.2 KiB)
Show more comments