winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Failed to install/enable NFS client

Open rajeshjaga opened this issue 1 year ago • 8 comments

Describe the bug There is a bunch of exception error occurring while trying to enable/install NFS Client on Windows 11 Home

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Config' Tab
  2. Click on 'NFS - Network File System'
  3. Then click 'Install Feature'
  4. See errors in the shell

Expected behavior Get/Install NFS client feature.

Screenshots image After clicking "install Feature", shell throws the issue occured

Installing ServicesForNFS-ClientOnly
WARNING: Unable to Install ServicesForNFS-ClientOnly due to unhandled exception
WARNING:    at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
Installing ClientForNFS-Infrastructure
WARNING: Unable to Install ClientForNFS-Infrastructure due to unhandled exception
WARNING:    at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
Installing NFS-Administration
WARNING: Unable to Install NFS-Administration due to unhandled exception
WARNING:    at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)
Running Script for WPFFeaturenfs
WARNING: Unable to Install NFS-Administration due to unhandled exception
WARNING:    at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
   at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
   at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
   at System.Management.Automation.ScriptBlock.InvokeUsingCmdlet(Cmdlet contextCmdlet, Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Object[] args)
   at Microsoft.PowerShell.Commands.InvokeCommandCommand.EndProcessing()
   at System.Management.Automation.CommandProcessorBase.Complete()
Running Script for WPFFeaturenfs
Running Script for WPFFeaturenfs
Running Script for WPFFeaturenfs
WARNING: Unable to Install NFS-Administration due to unhandled exception
WARNING:    at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
   at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
   at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
   at System.Management.Automation.ScriptBlock.InvokeUsingCmdlet(Cmdlet contextCmdlet, Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Object[] args)
   at Microsoft.PowerShell.Commands.InvokeCommandCommand.EndProcessing()
   at System.Management.Automation.CommandProcessorBase.Complete()
Running Script for WPFFeaturenfs
WARNING: Unable to Install NFS-Administration due to unhandled exception
WARNING:    at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
   at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
   at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
   at System.Management.Automation.ScriptBlock.InvokeUsingCmdlet(Cmdlet contextCmdlet, Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Object[] args)
   at Microsoft.PowerShell.Commands.InvokeCommandCommand.EndProcessing()
   at System.Management.Automation.CommandProcessorBase.Complete()
===================================
---   Features are Installed    ---
---  A Reboot may be required   ---
===================================

Additional context For ref I'm using Windows 11 Home OsVersion : 10.0.22631, OsBuildNumber : 22631

rajeshjaga avatar Apr 01 '24 08:04 rajeshjaga

what version of Powershell are you using?

YusufKhalifadev avatar Apr 01 '24 12:04 YusufKhalifadev

what version of Powershell are you using?

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

rajeshjaga avatar Apr 02 '24 05:04 rajeshjaga

@rajeshjaga I tested that on windows 11 pro and windows 10 pro so it's seemingly not a problem with the toolbox maybe you did a tweak or maybe you didn't update your system or maybe it's a problem with windows 11 home Just try updating you system

YusufKhalifadev avatar Apr 02 '24 20:04 YusufKhalifadev

System seems to be up to date. I have tried on couple other windows 11 home machines and they are reproducing the same exception error. Also I think it could be only windows home version that might have been causing this issue, will try out on few VM's

rajeshjaga avatar Apr 03 '24 02:04 rajeshjaga

System seems to be up to date. I have tried on couple other windows 11 home machines and they are reproducing the same exception error. Also I think it could be only windows home version that might have been causing this issue, will try out on few VM's

Yup, its probably windows.home issue I will try looking more into that to see what makes home fails to install winget.

YusufKhalifadev avatar Apr 03 '24 03:04 YusufKhalifadev

@rajeshjaga Can you launch Optional Features (Win+R > OptionalFeatures) and tell me if you see Services for NFS in there?

ruxunderscore avatar Apr 06 '24 05:04 ruxunderscore

I don't see that option image

rajeshjaga avatar Apr 06 '24 06:04 rajeshjaga

Yeah. Looks like Home doesn't seem to have the NFS client, which seems like a weird thing to not include.

ruxunderscore avatar Apr 06 '24 07:04 ruxunderscore

Closed due to inactivity

github-actions[bot] avatar Apr 21 '24 00:04 github-actions[bot]