Nhiều người dùng Windows 10 báo lỗi "Package could not be registered" khi mở file ảnh .jpg/.jpeg/.png. Nguyên nhân chính: ứng dụng Microsoft Photos bị hỏng, tệp hệ thống hỗ trợ bị lỗi, hoặc cài đặt mặc định sai.
Các giải pháp theo thứ tự hiệu quả
1. Khởi động lại máy & Cập nhật Windows
- Restart máy để xóa lỗi tạm.
- Settings > Update & Security > Windows Update > Check for updates > cài đặt > Restart.
2. Chạy System File Checker (SFC)
- Mở CMD Admin.
- Gõ:
sfc /scannow> Enter. - Đợi quét 100%, sửa tệp hệ thống hỏng > Restart.
3. Đặt Photos làm ứng dụng mặc định mở ảnh
- Chuột phải file ảnh bất kỳ > Properties > tab General > nút Change.
- Chọn Photos từ danh sách > OK > Apply/OK.
4. Chạy Windows Store Apps Troubleshooter
- Settings > Update & Security > Troubleshoot > Additional troubleshooters.
- Chọn Windows Store Apps > Run the troubleshooter.
5. Reset ứng dụng Photos về mặc định
- Settings > Apps > Apps & features.
- Tìm Microsoft Photos > nhấp > Advanced options.
- Nhấn Reset > xác nhận Reset lại > Restart máy.
6. Gỡ & Cài lại Photos qua PowerShell (Nếu các cách trên thất bại)
- Mở PowerShell Admin.
- Gỡ:
Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage - Restart máy.
- Cài lại:
Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} - Hoặc mở Microsoft Store tìm "Microsoft Photos" > Install.
7. Kiểm tra file ảnh có hỏng không
- Chuột phải file ảnh > Open with > Paint (mspaint). Nếu Paint mở được > file ảnh OK, lỗi do app Photos.
- Nếu Paint cũng không mở được > file ảnh có thể hỏng/tải không hoàn tất.