liblzma-5.dll Error in Windows 10 and 11: XZ and LZMA archive loading errors

liblzma-5.dll Windows 10 and 11 guide for xz and lzma archive loading errors

An archive application opens but crashes when listing or extracting an XZ file, or a packaged tool reports liblzma-5.dll on launch.

What this DLL does

Windows builds of XZ Utils provide this liblzma filename for tools that handle XZ and LZMA compression.

Start with this check

Keep the original archive and try listing a tiny known-good XZ archive. Check whether the affected installation came from the app vendor or an MSYS2 package.

Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.

If a known-good archive works but a specific file fails integrity verification, use the download or backup source to obtain a complete copy before further extraction.

Choose the repair that fits

Repair the complete vendor bundle or restore the supported XZ package in the same MSYS2 environment. Keep the archive tool and its dependency versions aligned.

Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.

Verify the repair

List and extract the known-good archive into a temporary directory, then test a copy of the original archive.

For a related check, see zlib1.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: MSYS2 XZ Utils package manifest.