Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2016 00:24
Show Gist options
  • Save anonymous/21fc9043b1ee3fa3660cd4d513ee67d5 to your computer and use it in GitHub Desktop.
Save anonymous/21fc9043b1ee3fa3660cd4d513ee67d5 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist May 12, 2016.
    21 changes: 21 additions & 0 deletions Upgrade Ubuntu on Windows
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    # 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

    # Now for the scary one--see below.
    apt-get dist-upgrade