Software & AppsOperating SystemLinux

Speeding Up Ubuntu 22.04 Installation on Windows Subsystem for Linux (WSL)

Ubuntu 2

The Ubuntu 22.04 LTS (Jammy) installer for WSL (Windows Subsystem for Linux) has been reported to be slower compared to previous versions. However, there are ways to optimize this process and make it faster. In this article, we will explore these methods and provide a step-by-step guide on how to speed up the Ubuntu 22.04 installation on WSL.

Quick Answer

To speed up the Ubuntu 22.04 installation on Windows Subsystem for Linux (WSL), you can disable the Out of Box Experience (OOBE) or use the Preview OOBE. These methods can significantly reduce the installation time and make the process faster and more efficient.

Understanding the Ubuntu 22.04 Installer

The Ubuntu 22.04 installer uses a graphical user interface (GUI) called the “Out of Box Experience” (OOBE). This installer is more time-consuming compared to the text-based install used by previous versions, such as Ubuntu 20.04 LTS (Focal). The OOBE goes through multiple steps, including unpacking the distro, language selection, username/password setup, advanced setup for mount options, and applying changes. The “Applying Changes” step is particularly slow, taking up more than 30 seconds of the total installation time.

Disabling the OOBE

One of the easiest ways to speed up the Ubuntu 22.04 installation is by disabling the OOBE. This will make the installation time similar to the Focal version. To disable the OOBE, follow these steps:

  1. Open your WSL terminal.
  2. Type the following command and hit Enter:
sudo apt-get remove oem-config

This command will remove the OOBE from your system, thus speeding up the installation process.

Using the Preview OOBE

Ubuntu has developed a newer version of the OOBE called “Preview”. This version is faster and more efficient than the original OOBE. To try the Preview OOBE, you can follow these steps:

  1. Open your WSL terminal.
  2. Type the following command and hit Enter:
sudo apt-get install oem-config-preview

This command will install the Preview OOBE on your system.

Reporting Issues

If you encounter any issues while installing Ubuntu 22.04 on WSL, you can report them on the Ubuntu WSL GitHub repository. The Ubuntu team is actively working on improving the installation process and your feedback can be very helpful.

Conclusion

While the Ubuntu 22.04 LTS (Jammy) installer for WSL is slower compared to previous versions, there are ways to speed up the process. By disabling the OOBE or using the Preview OOBE, you can significantly reduce the installation time. Remember to report any issues you encounter to help improve the overall user experience.

In the future, we hope to see more improvements in the Ubuntu installation process on WSL, making it faster and more efficient for all users.

How much time can I save by disabling the OOBE during the Ubuntu 22.04 installation on WSL?

By disabling the OOBE, you can save significant time during the installation process. The "Applying Changes" step, which is the slowest part of the installation, takes up more than 30 seconds. Disabling the OOBE can make the installation time similar to previous versions, such as Ubuntu 20.04 LTS (Focal).

Can I enable the OOBE again after disabling it during the Ubuntu 22.04 installation on WSL?

Yes, you can enable the OOBE again if needed. To do so, you can reinstall the oem-config package by running the following command in your WSL terminal: sudo apt-get install oem-config. This will bring back the OOBE functionality and restore the original installation process.

How can I switch to the Preview OOBE during the Ubuntu 22.04 installation on WSL?

To switch to the Preview OOBE, you need to install the oem-config-preview package. You can do this by running the command sudo apt-get install oem-config-preview in your WSL terminal. Once installed, the Preview OOBE will be used instead of the default OOBE during the installation process.

Where can I report issues encountered during the Ubuntu 22.04 installation on WSL?

If you encounter any issues during the installation of Ubuntu 22.04 on WSL, you can report them on the Ubuntu WSL GitHub repository. The Ubuntu team actively monitors and addresses issues reported there. Your feedback can be valuable in improving the installation process for all users.

Will there be further improvements to the Ubuntu installation process on WSL in the future?

Yes, the Ubuntu team is committed to improving the installation process on WSL. They are actively working on addressing any issues and making the installation faster and more efficient. By reporting issues and providing feedback, you can contribute to the ongoing improvements and help enhance the overall user experience.

Leave a Comment

Your email address will not be published. Required fields are marked *