ブログアーカイブ
Uninstalling superseded driver
%SystemRoot%\Logs\CBS\CBS.log
2014-08-18 21:34:11, Info CBS DriverUpdateUninstallUpdates failed [HRESULT = 0x80070003 – ERROR_PATH_NOT_FOUND]
2014-08-18 21:34:11, Info CBS Failed uninstalling superseded driver: C:\WINDOWS\WinSxS\amd64_wudfusbcciddriver.inf_31bf3856ad364e35_6.3.9600.16384_none_53380fb3d5abc896\WUDFUsbccidDriver.inf [HRESULT = 0x80070003 – ERROR_PATH_NOT_FOUND]
2014-08-18 21:34:11, Info CSI 00000015 Not able to uninstall driver for: [ml:280{140},l:162{81}]”amd64_wudfusbcciddriver.inf_31bf3856ad364e35_6.3.9600.16384_none_53380fb3d5abc896″, HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND)
2014-08-18 21:34:11, Info CSI 00000016 Uninstall driver for: [ml:280{140},l:142{71}]”amd64_wvms_pp.inf_31bf3856ad364e35_6.3.9600.17114_none_53ef8848c520c395″
2014-08-18 21:34:11, Info CBS Uninstalling superseded driver: C:\WINDOWS\WinSxS\amd64_wvms_pp.inf_31bf3856ad364e35_6.3.9600.17114_none_53ef8848c520c395\wvms_pp.inf
2014-08-18 21:34:13, Info CBS DriverUpdateUninstallUpdates failed [HRESULT = 0x80070490 – ERROR_NOT_FOUND]
2014-08-18 21:34:13, Info CBS Unstaging superseded driver: C:\WINDOWS\WinSxS\amd64_wvms_pp.inf_31bf3856ad364e35_6.3.9600.17114_none_53ef8848c520c395\wvms_pp.inf
amd64_wvms_pp.inf_31bf3856ad364e35_6.3.9600.17136_none_53dbe904c52f2e25 よりも古いバージョンのファイルをアンインストールしようしています。
自動メンテナンス、若しくはディスクのクリーンアップを行うとデバイスドライバーの古いバージョンが %SystemRoot%\System32\DriverStore\FileRepository からアンインストールされますが、WinSxSのフォルダーとファイルの削除も行おうとしています。COMPONENTS, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing のレジストリーを削除しますが、対応する Package_n_for_KBxxxxxxx… などのデータを削除できないために発生していると考えられます。
Dism を実行すると エラー 1726 が発生する
Windows 8.1 x64 Update 1 で Dism を実行すると エラー 1726 が発生して強制終了します。
Dism /Online /Cleanup-Image /RestoreHealth を実行すると、エラー 1726「リモート プロシージャ コールに失敗しました。」が表示されます。
バージョン: 6.3.9600.17031
イメージのバージョン: 6.3.9600.17031
[=========== 20.0% ]
エラー: 1726
リモート プロシージャ コールに失敗しました。
DISM ログ ファイルは C:\WINDOWS\Logs\DISM\dism.log にあります
%SystemRoot%\WinSxS の各フォルダーのファイルと、%SystemRoot%\WinSxS\Backup フォルダーのファイルのサイズが一致しないときに発生します。
%SystemRoot%WinSxS\Backup\amd64_microsoft-windows-ntdll_31bf3856ad364e35_6.3.9600.17114_none_49e0d32ccfec0e46_ntdll.dll_ae4ef39c ファイルは 681KB ですが、%SystemRoot%\WinSxS\WinSxS\amd64_microsoft-windows-ntdll_31bf3856ad364e35_6.3.9600.17114_none_49e0d32ccfec0e46\ntdll.dll は 1686KB となっていました。この状態で Dism を実行すると エラー 1726 が発生し、%SystemRoot%\Logs\CBS\CBS.log に メッセージが書き込まれます。
2014-08-11 00:34:08, Error CSI 000001da@2014/8/10:15:34:08.800 (F) base\wcp\componentstore\corruptionrepair.cpp(1691): Error STATUS_INTERNAL_ERROR originated in function ComponentStore::CRawStoreLayout::ReplaceFileA expression: Disposition == DecompressNullDeltaCompressedFile_Disposition::Decompressed
2014-08-11 00:34:08, Info CBS Added C:\WINDOWS\Logs\CBS\CBS.log to WER report.
2014-08-11 00:34:08, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140810141916.log to WER report.
2014-08-11 00:34:08, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140810070310.cab to WER report.
2014-08-11 00:34:08, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140809191617.cab to WER report.
2014-08-11 00:34:08, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140809153525.cab to WER report.
2014-08-11 00:34:08, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140809082900.cab to WER report.
2014-08-11 00:34:08, Info CBS Not able to add current session file to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 00:34:08, Info CBS Not able to add pending.xml to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 00:34:08, Info CBS Not able to add pending.xml.bad to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 00:34:08, Info CBS Not able to add SCM.EVM to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 00:48:29, Info CBS Failed to FinalizeEx using worker session [HRESULT = 0x800706be]
2014-08-11 06:43:31, Info CSI 000001d7 Hashes for file member \SystemRoot\WinSxS\amd64_microsoft-windows-ntdll_31bf3856ad364e35_6.3.9600.17114_none_49e0d32ccfec0e46\ntdll.dll do not match actual file [l:18{9}]”ntdll.dll” :
Found: {…} Expected: {…}
2014-08-11 06:43:31, Error CSI 000001d8@2014/8/10:21:43:31.237 (F) base\wcp\library\delta_library.cpp(287): Error NTSTATUS_FROM_WIN32(ERROR_INVALID_DATA) originated in function Windows::Rtl::DeltaDecompressBuffer expression: g_pfnApplyDeltaB(( (DELTA_FLAG_TYPE)0x00000000 ), ReferenceInput, CompressedInput, &UncompressedOutput)
2014-08-11 06:43:31, Info CBS Added C:\WINDOWS\Logs\CBS\CBS.log to WER report.
2014-08-11 06:43:31, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140810141916.log to WER report.
2014-08-11 06:43:31, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140810070310.cab to WER report.
2014-08-11 06:43:31, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140809191617.cab to WER report.
2014-08-11 06:43:31, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140809153525.cab to WER report.
2014-08-11 06:43:31, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140809082900.cab to WER report.
2014-08-11 06:43:31, Info CBS Not able to add current session file to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 06:43:31, Info CBS Not able to add pending.xml to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 06:43:31, Info CBS Not able to add pending.xml.bad to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 06:43:31, Info CBS Not able to add SCM.EVM to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 06:59:42, Error CSI 000001d9 (F) Failed on regenerating file [l:18{9}]”ntdll.dll”
2014-08-11 06:59:42, Error CSI 000001da@2014/8/10:21:59:42.105 (F) base\wcp\componentstore\corruptionrepair.cpp(1691): Error STATUS_INTERNAL_ERROR originated in function ComponentStore::CRawStoreLayout::ReplaceFileA expression: Disposition == DecompressNullDeltaCompressedFile_Disposition::Decompressed
2014-08-11 06:59:42, Info CBS Added C:\WINDOWS\Logs\CBS\CBS.log to WER report.
2014-08-11 06:59:42, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140810141916.log to WER report.
2014-08-11 06:59:42, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140810070310.cab to WER report.
2014-08-11 06:59:42, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140809191617.cab to WER report.
2014-08-11 06:59:42, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140809153525.cab to WER report.
2014-08-11 06:59:42, Info CBS Added C:\WINDOWS\Logs\CBS\CbsPersist_20140809082900.cab to WER report.
2014-08-11 06:59:42, Info CBS Not able to add current session file to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 06:59:42, Info CBS Not able to add pending.xml to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 06:59:42, Info CBS Not able to add pending.xml.bad to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
2014-08-11 06:59:42, Info CBS Not able to add SCM.EVM to Windows Error Report. [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-ntdll_31bf3856ad364e35_6.3.9600.17114_none_49e0d32ccfec0e46\f!ntdll.dll は DWORD:0x00000041(65) となっています。
エラーが発生しないほうにファイルを統一します。Windows 8.1 Update 1以降は最新バージョンのファイルだけで問題ないようです。
%SystemRoot%\WinSxS\Backup, %SystemRoot%\WinSxS\(folder) フォルダーに Administrators フルコントロール権限を一時的に追加します。
Xcopy %SystemRoot%\WinSxS\..(folder) %SystemRoot%\WinSxS\Backup\…\f!.. または、Xcopy %SystemRoot%\WinSxS\Backup\…\f!.. %SystemRoot%\WinSxS\..(folder) を実行してファイルを上書きします。
圧縮されていないファイルは 0x00000041、圧縮されているファイルは 0x00000043 に設定します。[最新バージョン以外のファイルは必要ないように思われます。]
%SystemRoot%\WinSxS\Backup にファイルが存在するにもかかわらず、HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\(name)\f!… の値が 0x00000041, 0x00000043 に設定されていない箇所があります。
Windows 8.1 の WinSxS フォルダーのファイルについて
%SystemRoot%\WinSxS\amd64_microsoft-windows-wcfcorecomp.resources_31bf3856ad364e35_6.3.9600.16384_ja-jp_c059062ecab63b8d フォルダーのファイルのハッシュが一致しません。他の言語にも影響がありそうです。CBS.log に次のログが書き込まれます。
2014-04-30 21:24:42, Info CSI 000005c5 Hashes for file member \SystemRoot\WinSxS\amd64_microsoft-windows-wcfcorecomp.resources_31bf3856ad364e35_6.3.9600.16384_ja-jp_c059062ecab63b8d\System.RunTime.Serialization.Resources.dll do not match actual file [l:84{42}]”System.RunTime.Serialization.Resources.dll” :
Found: {l:32 b:XO5P5tg5G/Bwj61e+H41/vVZrniAzKfBG/YsiDjy4xU=} Expected: {l:32 b:Svss9QhaPyRD24BLSuWj89bx8I95vINfrJUlzQ/C+5A=}
2014-04-30 21:24:42, Info CSI 000005c6 [SR] Cannot repair member file [l:84{42}]”System.RunTime.Serialization.Resources.dll” of Microsoft-Windows-WCFCoreComp.Resources, Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture = [l:10{5}]”ja-jp”, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
このフォルダーのほかのファイルも同様のメッセージが書き込まれます。
Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.3.9600.16384 [HRESULT = 0x80070002 – ERROR_FILE_NOT_FOUND]
%SystemRoot%\WinSxS\msil_microsoft.virtualiz..lient.6.2.vmbrowser_31bf3856ad364e35_6.3.9600.16384_none_d9b8cd37fa32f58d
2014-05-02 17:50:30, Error CSI 0000024a (F) Failed on generating delta for: [l:118{59}]”Microsoft.Virtualization.Client.6.2.VMBrowser.resources.dll”[gle=0x80004005]
その他、msil で始まるフォルダーの一部のファイルに不具合がありそうです。
2014-05-02 17:50:29, Info CBS Exec: Installing Package: Package_1070_for_KB2919355~31bf3856ad364e35~amd64~~6.3.1.14, Update: 2919355-2654_neutral_GDR, InstallDeployment: amd64_4296ee82ca7b72b7f436c46cb2ef7076_31bf3856ad364e35_6.3.9600.17031_none_927ade21fbfbee1b
2014-05-02 17:50:29, Info CSI 00000245 Performing 1 operations; 1 are not lock/unlock and follow:
(0) AddCat (14): flags: 1 catfile: @0x18737f7df8
2014-05-02 17:50:29, Info CBS Setting ExecuteState key to: CbsExecuteStateFailed
Package_1057_for_KB2919355~31bf3856ad364e35~amd64~~6.3.1.14, Package_1047_for_KB2919355~31bf3856ad364e35~amd64~~6.3.1.14, Package_1070_for_KB2919355~31bf3856ad364e35~amd64~~6.3.1.14, Package_1075_for_KB2919355~31bf3856ad364e35~amd64~~6.3.1.14 も同様のメッセージが書き込まれています。
Attempt to change a finalized session [HRESULT = 0x800f0842 – CBS_E_SESSION_FINALIZED]
base\wcp\sil\merged\ntu\ntsystem.cpp(2155): Error STATUS_OBJECT_NAME_NOT_FOUND originated in function Windows::Rtl::SystemImplementation::DirectFileSystemProvider::SysCreateFile expression: (null)
[gle=0x80004005]
base\wcp\library\delta_library.cpp(287): Error NTSTATUS_FROM_WIN32(ERROR_INVALID_DATA) originated in function Windows::Rtl::DeltaDecompressBuffer expression: g_pfnApplyDeltaB(( (DELTA_FLAG_TYPE)0x00000000 ), ReferenceInput, CompressedInput, &UncompressedOutput)
[gle=0x80004005]
2014-05-03 05:30:11, Info CBS Failed to internally open package. [HRESULT = 0x800f0805 – CBS_E_INVALID_PACKAGE]
2014-05-03 05:30:11, Info CBS Failed to OpenPackage using worker session [HRESULT = 0x800f0805]
2014-05-04 10:47:57, Error CSI 00000012@2014/5/4:01:47:57.829 (F) base\xml\udom_microdom.cpp(4255): Error STATUS_XML_PARSE_ERROR originated in function RtlCreateMicrodom expression: (null)
[gle=0x80004005]
2014年5月6日 加筆
%SystemRoot%WinSxS フォルダーの MrmCoreR.dll ファイルに問題があったようです。KB2962140 を適用した後、改善されました。
ただ、概ね 6.3.9600.16xxx を含むフォルダーのファイルが破損していると思われます。より新しいバージョンてある 6.3.9600.17031 は正しく配置されたファイルが多いので問題ないかもしれません。
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners のキーの値が 配置してあるファイルと一致しない箇所がありました。
0x800f0818 Error
pkgmgr.exe を実行すると %SystemRoot%\Logs\CBS\CBS.log に “Pkgmgr: Failed installing selectable updates for: Windows Foundation, hr: 0x800f0818” が書き込まれる。
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages を確認します。
私の環境では、package_n_for_kb979688~31bf3856ad364e35~amd64~~, package_n_for_kb2705219~31bf3856ad364e35~amd64~~, package_n_for_kb2731847~31bf3856ad364e35~amd64~~ のキーに問題があることがわかりました。このKB979688, KB2705219, KB2731847 にはそれぞれ複数のバージョンが存在します。リリースされた日時により、Windows6.0-KB979688-v3-x64.msu, Windows6.0-KB2705219-v2-x64.msu, Windows6.0-KB2731847-v2-x64.msu など-v -が含まれます。さらに ~~のあとに 6.0.1.1, 6.0.2.0, 6.0.3.0 と、異なる.cat, .msu ファイルが存在します。
Package_for_kb979688~31bf3856ad364e35~amd64~~6.0.1.0, Package_for_KB2705219~31bf3856ad364e35~amd64~~6.0.2.0, Package_for_KB2731847~31bf3856ad364e35~amd64~~6.0.2.0 に沿うように、Package_n_for…のキー名と、InstallName, \Owners の名前を修正したところ、このエラーが発生しなくなりました。
リカバリ、再インストールを行った場合には、最新のバージョンのものがインストールされます。インストールした時期によりこのように複数のバージョンが混在したものと思われます。