Software⏱️ 3 min read📅 2026-06-19

How to Fix: Ubuntu WSL installation error

Error fixing Ubuntu WSL installation on Windows 10.

Quick Answer: Check the file path and ensure it matches the expected location for the Ubuntu WSL installation.

The 'The system cannot find the file specified' error occurs when the Windows Subsystem for Linux (WSL) is unable to locate a required file during the installation process. This issue affects users who are attempting to install Ubuntu 18.04 WSL on Windows 10, and can be frustrating as it prevents them from completing the installation and using the WSL.

This error can be particularly vexing for those who have already successfully downloaded the necessary files and added the package to their system via PowerShell. However, when attempting to finalize the installation in the Bash shell, they are met with this error message, which can be confusing and discouraging.

💡 Why You Are Getting This Error

  • The primary reason for this error is that the Ubuntu WSL installer requires specific dependencies to be installed on the system before it can proceed with the installation. If these dependencies are not present or are missing, the installer will fail and display the 'The system cannot find the file specified' error.
  • An alternative cause of this issue could be a corrupted or incomplete download of the necessary files. In such cases, the installer may not be able to locate the required files, leading to the same error message.

✅ Best Solutions to Fix It

Update and install necessary dependencies

  1. Step 1: Open PowerShell as an administrator and run the command 'winget upgrade' to ensure that all necessary dependencies are up-to-date.
  2. Step 2: Next, run the command 'winget install Microsoft.Windows.DesktopAppAwarenessContract' to install the Desktop App Awareness contract, which is required for WSL to function correctly.
  3. Step 3: Finally, run the command 'winget install Microsoft.Windows.Subsystem.Linux' to install the necessary dependencies and complete the installation process.

Re-download and reinstall the Ubuntu WSL package

  1. Step 1: Open PowerShell as an administrator and run the command 'winget uninstall Microsoft.Windows.Subsystem.Linux' to completely remove the existing package.
  2. Step 2: Next, re-run the command 'winget install Microsoft.Windows.Subsystem.Linux' to download and reinstall the Ubuntu WSL package from scratch.

💡 Conclusion

By following either of these methods, users should be able to resolve the 'The system cannot find the file specified' error and successfully install the Ubuntu 18.04 WSL on their Windows 10 system. It is recommended that users try both methods before attempting to troubleshoot further, as the first method may resolve the issue without requiring additional assistance.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions