Sửa lỗi The Installation Failed In The First Boot Phase: Nếu bạn đang nâng cấp lên Windows 10 hoặc cài bản cập nhật lớn từ Microsoft, quá trình cài đặt có thể thất bại và bạn nhận được thông báo "We couldn’t install Windows 10". Nếu nhìn kỹ, dưới cùng sẽ có thêm thông tin là mã lỗi 0xC1900101 – 0x30018 hoặc 0x80070004 – 0x3000D tùy loại lỗi. Dưới đây là các mã lỗi thường gặp:
0x80070004 – 0x3000D
The installation failed in the FIRST_BOOT phase with an error during MIGRATE_DATE operation.
0xC1900101 – 0x30018
The installation failed in the FIRST_BOOT phase with the error during SYSPREP operation.
0xC1900101-0x30017
The installation failed in the FIRST_BOOT phase with an error during BOOT operation.

Tất cả các lỗi trên do cấu hình registry không đúng hoặc xung đột driver thiết bị. Đôi khi phần mềm thứ 3 cũng gây ra lỗi. Cần khắc phục nguyên nhân để giải quyết. Không mất thêm thời gian, hãy xem cách Sửa lỗi The Installation Failed In The First Boot Phase với hướng dẫn dưới đây.
Sửa lỗi The Installation Failed In The First Boot Phase
Tạo điểm khôi phục hệ thống trước khi thực hiện.
Lưu ý: Ngắt kết nối mọi thiết bị ngoại vi gắn vào PC.
Phương pháp 1: Tạm thời tắt Antivirus và Firewall
(Các bước tương tự các bài trước - xem chi tiết trong nội dung gốc)
Phương pháp 2: Kiểm tra Windows Update
1. Windows + I > Update & Security.

2. Click Check for updates và cài đặt mọi bản cập nhật đang chờ.

3. Sau khi cài xong, khởi động lại > kiểm tra xem đã khắc phục lỗi chưa.
Phương pháp 3: Chạy Windows Update Troubleshooter chính thức
Nếu vẫn không khắc phục, hãy chạy Windows Update Troubleshooter từ trang web Microsoft.
Phương pháp 4: Chạy Windows Update trong Clean Boot
Điều này đảm bảo nếu ứng dụng thứ 3 xung đột với Windows Update, bạn vẫn cài đặt thành công trong Clean Boot. Thực hiện Clean Boot để chẩn đoán từng bước nhằm khắc phục lỗi Installation Failed In The First Boot Phase.
Phương pháp 5: Đảm bảo đủ dung lượng ổ cứng
Để cài đặt thành công Windows update/nâng cấp, cần ít nhất 20GB dung lượng trống trên ổ cứng hệ thống. Dù cập nhật không tiêu thụ hết dung lượng, nhưng nên giải phóng ít nhất 20GB để cài đặt không gặp sự cố.

Phương pháp 6: Đổi tên thư mục SoftwareDistribution
1. Windows + X > Command Prompt (Admin).

2. Gõ lần lượt để dừng dịch vụ (Enter sau mỗi lệnh):
net stop wuauserv net stop cryptSvc net stop bits net stop msiserver

3. Gõ lệnh đổi tên thư mục (Enter sau mỗi lệnh):
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old ren C:\Windows\System32\catroot2 catroot2.old

4. Gõ lệnh khởi động lại dịch vụ (Enter sau mỗi lệnh):
net start wuauserv net start cryptSvc net start bits net start msiserver

5. Khởi động lại.
Phương pháp 7: Sửa Registry
1. Windows + R > gõ regedit > Enter.

2. Điều hướng đến khóa:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade
3. Nếu không thấy khóa OSUpgrade, chuột phải WindowsUpdate > New > Key.

4. Đặt tên khóa là OSUpgrade > Enter.
5. Chọn OSUpgrade, bên phải chuột phải vùng trống > New > DWORD (32-bit) Value.

6. Đặt tên DWORD là AllowOSUpgrade > double-click đổi giá trị thành 1.
7. Thử cài lại cập nhật hoặc chạy lại quá trình nâng cấp, xem đã khắc phục lỗi chưa.
Phương pháp 8: Xóa file cụ thể gây cản trở nâng cấp
1. Điều hướng đến thư mục:
C:\Users\UserName\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Orbx

Lưu ý: Để thấy thư mục AppData, vào Folder Options tích Show hidden files and folders.
2. Hoặc Windows + R > gõ %appdata%\Microsoft\Windows\Start Menu\Programs\Orbx > Enter.
3. Dưới thư mục Orbx, tìm file tên Todo, nếu tồn tại hãy xóa vĩnh viễn.
4. Khởi động lại > thử lại quá trình nâng cấp.
Phương pháp 9: Cập nhật BIOS
Cập nhật BIOS là tác vụ quan trọng, nếu sai có thể hỏng hệ thống, nên có chuyên gia giám sát.
1. Xác định phiên bản BIOS: Windows + R > gõ msinfo32 > Enter mở System Information.

2. Ghi nhớ nhà sản xuất và phiên bản BIOS tại BIOS Version/Date.

3. Vào website nhà sản xuất (ví dụ Dell), nhập serial number hoặc dùng auto-detect.
4. Từ danh sách driver, chọn BIOS > tải bản cập nhật khuyến nghị.
Lưu ý: Không tắt máy hoặc ngắt nguồn khi cập nhật BIOS. Máy sẽ khởi động lại và màn hình đen ngắn thời gian.
5. Sau khi tải xong, double-click file .exe để chạy.
6. Đã cập nhật BIOS xong, có thể khắc phục lỗi Installation Failed In The First Boot Phase.
Phương pháp 10: Vô hiệu hóa Secure Boot
1. Khởi động lại PC.
2. Khi reboot, vào BIOS setup bằng cách nhấn phím tương ứng trong quá trình boot.
3. Tìm cài đặt Secure Boot, nếu có thể đặt thành Enabled. Tùy chọn thường ở tab Security, Boot hoặc Authentication.

#CẢNH BÁO: Sau khi tắt Secure Boot, có thể khó kích hoạt lại mà không restore về trạng thái gốc.
4. Khởi động lại > kiểm tra xem đã khắc phục lỗi chưa.
5. Lại Enable Secure Boot từ BIOS setup.
Phương pháp 11: Chạy CCleaner và Malwarebytes
1. Tải và cài CCleaner & Malwarebytes.
2. Chạy Malwarebytes quét hệ thống.
3. Nếu tìm thấy malware, tự động xóa.
4. Chạy CCleaner, tab "Cleaner" > Windows tab, khuyến nghị tích các mục sau:

5. Click Run Cleaner.
6. Tab Registry, đảm bảo các mục sau được tích:

7. Chọn Scan for Issues > click Fix Selected Issues.
8. Khi CCleaner hỏi Do you want backup changes to the registry? chọn Yes.
9. Sau backup xong, chọn Fix All Selected Issues.
10. Khởi động lại > khắc phục lỗi, nếu không thì tiếp phương pháp 12.
Phương pháp 12: Chạy System File Checker và DISM Tool
1. Windows + X > Command Prompt (Admin).

2. Gõ lệnh > Enter:
Sfc /scannow sfc /scannow /offbootdir=c:\ /offwindir=c:\windows (Nếu lệnh trên thất bại thì thử lệnh này)

3. Đợi hoàn tất > Khởi động lại.
4. Mở lại cmd, gõ lần lượt (Enter sau mỗi lệnh):
a) Dism /Online /Cleanup-Image /CheckHealth b) Dism /Online /Cleanup-Image /ScanHealth c) Dism /Online /Cleanup-Image /RestoreHealth

5. Đợi DISM chạy xong.
6. Nếu không hiệu quả, thử:
Dism /Image:C:\offline /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows /LimitAccess
Lưu ý: Thay thế C:\RepairSource\Windows bằng vị trí nguồn sửa chữa (Windows Installation hoặc Recovery Disc).
7. Khởi động lại.
Phương pháp 13: Khắc phục sự cố (Troubleshooting)
1. Windows + X > Command Prompt (Admin).

2. Gõ các lệnh sau (copy paste) > Enter sau mỗi lệnh:
takeown /f C:\$Windows.~BT\Sources\Panther\setuperr.log\setuperr.log icacls C:\$Windows.~BT\Sources\Panther\setuperr.log\setuperr.log /reset /T notepad C:\$Windows.~BT\Sources\Panther\setuperr.log

3. Điều hướng đến thư mục:
C:\$Windows.~BT\Sources\Panther
Lưu ý: Cần tích Show hidden files and folders và bỏ tích Hide operating system files trong Folder Options để thấy thư mục này.
4. Double-click file setuperr.log để mở.
5. File lỗi sẽ chứa thông tin như sau (ví dụ):
2017-07-07 13:24:01, Error [0x0808fe] MIG Plugin {0b23c863-4410-4153-8733-a60c9b1990fb}: LoadRegFromFile :: OpenFile error (C:\$WINDOWS.~BT\Work\MachineIndependent\Working\srcworking\agentmgr\CCSIAgent\005A4BDD\HKLM-E0xxxx04IME.reg) gle=2
2017-07-07 13:24:07, Error SP Error WRITE, 0x00000005 while gathering/applying object: File, C:\Windows\System32\Tasks [avast! Emergency Update]. Will return 0[gle=0x00000005]
2017-07-07 13:24:07, Error MIG Error 5 while applying object C:\Windows\System32\Tasks\avast! Emergency Update. Shell application requested abort[gle=0x00000005]
2017-07-07 13:24:07, Error [0x08097b] MIG Abandoning apply due to error for object: C:\Windows\System32\Tasks\avast! Emergency Update[gle=0x00000005]
2017-07-07 13:24:08, Error Apply failed. Last error: 0x00000000
2017-07-07 13:24:08, Error SP pSPDoOnlineApply: Apply operation failed. Error: 0x0000002C
2017-07-07 13:24:09, Error SP Apply: Migration phase failed. Result: 44
2017-07-07 13:24:09, Error SP Operation failed: OOBE boot apply. Error: 0x8007002C[gle=0x000000b7]
2017-07-07 13:24:09, Error SP Operation execution failed: 13. hr = 0x8007002C[gle=0x000000b7]
2017-07-07 13:24:09, Error SP Operation execution failed.[gle=0x000000b7]
2017-07-07 13:24:09, Error SP CSetupPlatformPrivate::Execute: Failed to deserialize/execute pre-OOBEBoot operations. Error: 0x8007002C[gle=0x000000b7]
2017-07-07 17:24:01, Error [SetupHost.Exe] ReAgentXMLParser::ParseConfigFile (xml file: C:\$WINDOWS.~BT\Sources\SafeOS\ReAgent.xml) returning 0X2
2017-07-07 17:24:06, Error SP CInstallDUUpdatesOffline::FindOperation: No info found in section DynamicUpdate.Drivers of file C:\$Windows.~BT\Updates\Critical\SetupPlatform.ini[gle=0x00000002]
2017-07-07 17:24:06, Error SP CInstallDUUpdatesOffline::FindOperation: No info found in section DynamicUpdate.GDRs of file C:\$Windows.~BT\Updates\Critical\SetupPlatform.ini[gle=0x00000002]
2017-07-07 17:24:06, Error SP CInstallDUUpdatesOffline::FindOperation: No info found in section DynamicUpdate.Langpacks of file C:\$Windows.~BT\Updates\Critical\SetupPlatform.ini[gle=0x00000002]
2017-07-07 17:24:06, Error SP CInstallDUUpdatesOffline::FindOperation: No info found in section DynamicUpdate.FeaturesOnDemand of file C:\$Windows.~BT\Updates\Critical\SetupPlatform.ini[gle=0x00000002]
2017-07-08 13:30:12, Error SP pSPRemoveUpgradeRegTree: failed to delete reg tree HKLM\SYSTEM\Setup\Upgrade[gle=0x00000005]
2017-07-08 13:30:19, Error [0x080831] MIG CSIAgent: Invalid xml format: FormatException: "id" attribute is mandatory. void __cdecl Mig::CMXEMigrationXml::LoadSupportedComponent(class UnBCL::XmlNode *,int,class Mig::CMXEMigrationXml *,class Mig::CMXEXmlComponent *)
2017-07-08 13:30:21, Error [0x080831] MIG CSIAgent: Invalid xml format: FormatException: Component with display name: Plugin/{39CC25F3-AF21-4C42-854D-0524249F02CE} already loaded __cdecl Mig::CMXEMigrationXml::CMXEMigrationXml(class Mig::CPlatform *,class UnBCL::String *,class UnBCL::XmlDocument *,class UnBCL::String *,class UnBCL::String *)
2017-07-08 13:30:40, Error [0x0808fe] MIG Plugin {65cbf70b-1d78-4cac-8400-9acd65ced94a}: CreateProcess(s) failed. GLE = d
2017-07-08 13:31:32, Error [0x0808fe] MIG Plugin {526D451C-721A-4b97-AD34-DCE5D8CD22C5}: [shmig] Failed to get preferred homegroup with hr=0x80070490
2017-07-08 13:31:32, Error [0x0808fe] MIG Plugin {ee036dc0-f9b7-4d2d-bb94-3dd3102c5804}: BRIDGEMIG: CBrgUnattend::CollectBridgeSettings failed: 0x1, 0
2017-07-08 13:31:38, Error [0x0808fe] MIG Plugin {D12A3141-A1FF-4DAD-BF67-1B664DE1CBD6}: WSLicensing: Failed to read machine binding, hr=0x80070002
2017-07-08 13:31:38, Error [0x0808fe] MIG Plugin {D12A3141-A1FF-4DAD-BF67-1B664DE1CBD6}: WSLicensing: Error reading Server Info hr=0x80070490
2017-07-08 13:31:41, Error CSetupAutomation::Resurrect: File not found: C:\$Windows.~BT\Sources\Panther\automation.dat[gle=0x00000002]
2017-07-08 13:31:41, Error SP CSetupPlatform::ResurrectAutomation: Failed to resurrect automation: 0x80070002[gle=0x00000002]
2017-07-08 13:32:03, Error MOUPG CSetupHost::ReportEventW(1618): Result = 0x8024F005
2017-07-08 13:32:03, Error MOUPG SetupHost: Reporting pending reboot event failed: hr = [0x8024F005]
2017-07-08 13:32:03, Error MOUPG CDlpManager::AsyncSerializeDisable(471): Result = 0x80070216
6. Xác định điều gì đang ngăn cài đặt, khắc phục bằng cách gỡ cài đặt, vô hiệu hóa hoặc cập nhật và thử lại cài đặt.
7. Trong file log trên, nếu nhìn kỹ vấn đề do Avast gây ra, gỡ cài đặt Avast sẽ khắc phục.
Dành cho bạn:
- Sửa lỗi cài đặt máy in 0x000003eb
- Cách sửa NETWORK_FAILED trong Chrome
- Sửa lỗi Google Chrome "He’s Dead, Jim!"
- Sửa lỗi Windows Settings won’t open
Chúc bạn thành công khắc phục lỗi The Installation Failed In The First Boot Phase. Hãy bình luận nếu cần hỗ trợ.