Я использую Windows Server 2016. При выполнении Dism /online /Get-Features
на силовой оболочке я получаю такой вывод:
Version: 10.0.14393.0
Image Version: 10.0.14393.2457
Error: 0x800f0805
The specified package is not valid Windows package.
Я пробовал запустить Cleanup-Image
и Restore-Health
команды бесчисленное количество раз, но безрезультатно. Файл DISM.log показывает этот, вероятно, релевантный вывод:
2019-05-03 23:18:35, Info DISM DISM Provider Store: PID=3960 TID=4988 Getting Provider DISM Package Manager - CDISMProviderStore::GetProvider
2019-05-03 23:18:35, Info DISM DISM Provider Store: PID=3960 TID=4988 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
2019-05-03 23:18:35, Info DISM DISM Package Manager: PID=3960 TID=4988 Processing the top level command token(get-features). - CPackageManagerCLIHandler::Private_ValidateCmdLine
2019-05-03 23:18:35, Info DISM DISM Package Manager: PID=3960 TID=4988 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine
2019-05-03 23:18:35, Info DISM DISM Package Manager: PID=3960 TID=4988 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine
2019-05-03 23:18:35, Error DISM DISM Package Manager: PID=3960 TID=4988 Failed opening package @Foundation. - CDISMPackageManager::Internal_CreatePackageByName(hr:0x800f0805)
2019-05-03 23:18:35, Error DISM DISM Package Manager: PID=3960 TID=4988 Failed to get the underlying cbs package. - CDISMPackageManager::OpenPackageByName(hr:0x800f0805)
2019-05-03 23:18:35, Error DISM DISM Package Manager: PID=3960 TID=4988 The specified package is not valid Windows package. - GetCbsErrorMsg
2019-05-03 23:18:35, Error DISM DISM Package Manager: PID=3960 TID=4988 Failed to open the Foundation package. - CDISMPackageManager::OpenFoundationPackage(hr:0x800f0805)
2019-05-03 23:18:35, Error DISM DISM Package Manager: PID=3960 TID=4988 The specified package is not valid Windows package. - GetCbsErrorMsg
2019-05-03 23:18:35, Error DISM DISM Package Manager: PID=3960 TID=4988 Failed to open the Windows Foundation Package as a fall back. - CPackageManagerCLIHandler::ProcessCmdLine_GetFeatures(hr:0x800f0805)
2019-05-03 23:18:35, Error DISM DISM Package Manager: PID=3960 TID=4988 Failed while processing command get-features. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f0805)
2019-05-03 23:18:35, Info DISM DISM Package Manager: PID=3960 TID=4988 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine
В файле cbs.log перечислены эти выходные данные за соответствующее время:
2019-05-03 23:18:02, Info CBS WU creates the package, AppID:UpdateOrchestrator, UpdateID:{904A6850-B94E-40EF-BBF8-524E9ECE9F90}, revision: 201
2019-05-03 23:18:03, Info CBS Read out cached applicability from TiLight for package: Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.1480.1.15, ApplicableState: 0, CurrentState:0
2019-05-03 23:18:11, Info CBS WU creates the package, AppID:UpdateOrchestrator, UpdateID:{77CA678E-CF23-4B1E-BACD-46C54BBBB167}, revision: 200
2019-05-03 23:18:11, Info CBS Read out cached applicability from TiLight for package: Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.1358.1.9, ApplicableState: 0, CurrentState:0
2019-05-03 23:18:19, Info CBS WU creates the package, AppID:UpdateOrchestrator, UpdateID:{32064542-82DA-4012-B925-5CDE2A58201D}, revision: 202
2019-05-03 23:18:19, Info CBS Read out cached applicability from TiLight for package: Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.1198.1.6, ApplicableState: 0, CurrentState:0
2019-05-03 23:18:26, Info CBS WU creates the package, AppID:UpdateOrchestrator, UpdateID:{A4154C87-C19C-48BC-A5AA-4A7073D773F4}, revision: 200
2019-05-03 23:18:26, Info CBS Read out cached applicability from TiLight for package: Package_for_RollupFix~31bf3856ad364e35~amd64~~14393.1066.1.8, ApplicableState: 0, CurrentState:0
2019-05-03 23:18:35, Info CBS Session: 30736885_3295285420 initialized by client DISM Package Manager Provider, external staging directory: (null), external registry directory: (null
2019-05-03 23:18:35, Info CBS Not able to find an installed package package from moniker: @Foundation [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2019-05-03 23:18:35, Info CBS Failed to resolve package from moniker [HRESULT = 0x800f0805 - CBS_E_INVALID_PACKAGE]
2019-05-03 23:18:35, Info CBS Failed to OpenPackage using worker session [HRESULT = 0x800f0805]
Я понятия не имею, что делать. Есть ли способ "сбросить" этот DISM? Или вручную делать то, что он не может сделать сам?