Last active
September 4, 2016 12:03
-
-
Save igorzg/112dd5f20f7fac276f435b65eb57fbec to your computer and use it in GitHub Desktop.
Bash on windows update to 16.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upgrade all the packages to the latest versions | |
aptitude update | |
aptitude full-upgrade -y | |
# Update our sources, save the original as /etc/apt/sources.list.ORIG | |
# This step is REQUIRED, otherwise the instructions below will not upgrade a | |
# single package. | |
sed -i.ORIG 's/trusty/xenial/g' /etc/apt/sources.list | |
# Backup the /etc/apt/sources.list.d/ folder and create an empty one. | |
# This will disable all Third Party/Launchpad PPA repositories. | |
# These repositories can be re-enabled after a successful upgrade. | |
mv /etc/apt/sources.list.d/ /etc/apt/sources.list.d.ORIG/ | |
mkdir /etc/apt/sources.list.d/ | |
# Upgrade your box--the easy part. | |
aptitude update | |
aptitude safe-upgrade -y | |
apt-get dist-upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment