Starting with the Windows 10 Creators Update, anyone who installs the Bash environment will get Ubuntu 16.04 (Xenial). But, if you’ve previously installed Bash in the Anniversary Update, you’ll be stuck with Ubuntu 14.04 (Trusty) until you manually upgrade.
Ubuntu 16.04 contains more modern, up-to-date software packages. Ubuntu 14.04 was originally released in April, 2014, while Ubuntu 16.04 was released in April, 2016.
Update: Starting with the Fall Creators Update, Linux distributions are now delivered via the Store. If you previously installed the Ubuntu Bash environment, just open the Microsoft Store, search for “Ubuntu”, and install it to get the latest version.
How to Check Which Version of Ubuntu You Have
If you’re not sure which version of Ubuntu is being used in your current Bash environment, open a Bash window and run the following command:
It’ll show you whether you’re running Ubuntu 14.04 or Ubuntu 16.04. If you’re running Ubuntu 14.04 and want to upgrade, read on. But ensure you have the Creators Update installed: You can’t upgrade to Ubuntu 16.04 LTS without upgrading to the Creators Update first.
Option One: Uninstall and Reinstall Bash With lxrun
If you don’t care about any customizations you’ve made to your bash environment (or you’re prepared to customize it again), you don’t have to worry about performing an Ubuntu upgrade. You can simply remove your current Ubuntu image and then tell Windows to reinstall a new Ubuntu image. This is the fastest way to upgrade your Bash environment.
To do this, first open a Command Prompt window by right-clicking the Start button or pressing Windows+X on your keyboard and selecting “Command Prompt”. Run the following command to uninstall the Bash shell. This will keep your Linux user account’s files and preferences, but will erase the system files, including any installed programs and system-level settings changes.
y to continue and Windows will uninstall the Ubuntu 14.04 Bash environment.
Your Bash system files are now removed. To reinstall Bash—which will give you Ubuntu 16.04 instead of Ubuntu 14.04—run the following command:
y to continue and Windows will install the Ubuntu 16.04 Bash environment. Windows will automatically suggest you use the same username you used previously. You’ll be asked to enter a password after.
When it’s done, run the
lsb_release -a command once again and you’ll see you’re now using Ubuntu 16.04. You have access to the newer software available in Ubuntu 16.04’s package repositories.
Option Two: Upgrade Ubuntu With do-release-upgrade
If you’ve customized your Bash environment and installed software, you may not want to completely erase everything. In this case, you can perform an upgrade command from within the Bash shell. This will upgrade Ubuntu from version 14.04 to 16.04, just like you’d upgrade a full Ubuntu environment to a new release. However, this will take longer than simply removing and reinstalling the Bash files.
To do this, open the Bash shell and run the following command:
This is the process officially recommended by Microsoft.
- › Everything You Can Do With Windows 10’s New Bash Shell
- › GORILLA.BAS: How to Play the Secret MS-DOS Game From Your Childhood
- › How to Set Up Dual Monitors in Windows 11
- › How-To Geek Is Looking for a Future Tech Writer (Freelance)
- › Stop Listening to Celebrity Advice on Crypto (and Everything Else)
- › Wi-Fi 7: What Is It, and How Fast Will It Be?
- › How to Spot a Fraudulent Website