Skip to content

Instantly share code, notes, and snippets.

@igorzg
Last active September 4, 2016 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorzg/112dd5f20f7fac276f435b65eb57fbec to your computer and use it in GitHub Desktop.
Save igorzg/112dd5f20f7fac276f435b65eb57fbec to your computer and use it in GitHub Desktop.
Bash on windows update to 16.04
# 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