DISM:“指定的包不是有效的 Windows 包”

DISM:“指定的包不是有效的 Windows 包”

我正在运行 Windows Server 2016。在Dism /online /Get-Featurespower shell 上执行时,我得到以下输出:

Version: 10.0.14393.0

Image Version: 10.0.14393.2457


Error: 0x800f0805

The specified package is not valid Windows package.

我尝试运行Cleanup-ImageRestore-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?或者手动执行它无法自行执行的操作?

相关内容