Skip to content

Upgrade chroot release

DennisL edited this page Mar 8, 2017 · 18 revisions

Ubuntu

End of Life releases:

crouton nominally doesn't support EOL releases of distros, but feel free to file a bug and we'll try to fix things that break.

Release name Release # End-Of-Life date
precise 12.04 LTS will reach EOL in April 2017
utopic 14.10 reached EOL on 23 July 2015
vivid 15.04 reached EOL on 04 February 2016

See the Ubuntu wiki for a full list.

Since precise is on the cusp of being EOL'd (and xenial will soon be made the default release in #2833), please upgrade your precise chroot(s) as shown below or install a new one with -r xenial.

To upgrade to a more recent version of Ubuntu:

You can use this graphical method in your chroot:

Or follow these instructions in a crosh shell:

1. sudo enter-chroot -n <chroot_name>
NOTE: (replace <chroot_name> with the name of your chroot, e.g. precise)

2. sudo apt-get install update-manager-core python-apt

3. sudo do-release-upgrade


After the upgrade, whether it be by the graphical method or the command line, it is important to make sure that crouton is updated:

  • sudo sh ~/Downloads/crouton -n <chroot_name>-u

By default, the name of a chroot is its release name (e.g. a precise chroot's name is precise).
After an upgrade, you end up with a xenial chroot, whose name is precise. Confusing? You can easily rename it with:

  • sudo edit-chroot precise -m xenial

Upgrade from LTS to non-LTS

LTS releases (e.g. precise, 12.04) are supported by Ubuntu for 5 years.
By default, they will not upgrade to non-LTS release (e.g. quantal 12.10).
If you really want to do that, edit /etc/update-manager/release-upgrades and replace Prompt=lts by Prompt=normal.

Debian

Following the Debian guide and updating the chroot should work. (untested)